Docs
Update Schedule Block
PUT /procurement-resources/{resourceId}/schedule-blocks/{blockId}
PUT
/procurement-resources/{resourceId}/schedule-blocks/{blockId}Replaces a schedule block's fields and re-evaluates the need's planned states. Returns the orders whose sent revision is now out of date because the edit changed what they cover (empty when none); no revision is created. Works the same on an organization-level need (org token, resource inventory edit). There an org order line filling the need with no dates of its own follows the need's schedule span: its order's temporary units are re-planned (refused with 400 when a unit a show holds would be archived or narrowed, saving nothing), sent orders whose revision is now out of date are listed, and holds move.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | uuid | Required | |
| blockId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| typeId | uuid | Optional | |
| name | string | Optional | |
| startDateTime | date-time | Optional | |
| endDateTime | date-time | Optional | |
| activityId | uuid | Optional | |
| notes | string | Optional | |
| areaId | uuid | Optional | |
| collaboratorId | uuid | Optional |
Response
Type: UpdateScheduleBlockChangedOrderResponse[]
UpdateScheduleBlockChangedOrderResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null | |
| versionNumber | integer |