Update master data record
rillsoft_resource_pool_resource_updatePartially update a single resource pool element (role, team, employee, etc.) within an open unit of work. Use for changing specific fields without altering other attributes.
Instructions
Changes a single element of the resource pool as a partial update. Inside an open unit of work only. Absences cannot be changed here; the absence tools cover them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | internal id of the element; give exactly one of 'id' and 'code' | |
| code | No | code of the element; an ambiguous code makes the call fail | |
| type | Yes | catalog the object comes from | |
| fields | No | only the fields given are changed; every other attribute stays as it is. Which keys are permitted follows from 'type' - the alternatives below name them per catalog. With employee and team there is shiftCycles as well, the shift calendar as a list of { from, to, calendarId } (dates DD.MM.YYYY, to may be left out for a single day). It is written as a whole: leaving the field out keeps the stored cycle, an empty array deletes it. The periods must not overlap, and every calendarId has to exist in the pool |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | internal id of the element | |
| code | No | code of the element; missing when none is set | |
| name | No | name of the element | |
| type | Yes | catalog of the element | |
| group | No | name of the group; missing for people and without a group name | |
| outcome | Yes | what the call did |