POST/procurement-resources/{resourceId}/schedule-blocks/split
Places a new schedule block on a need and shortens every block it overlaps: a block it lands inside becomes
two (the second half copies its type, name, activity, notes, area and collaborator; request links stay on the
first), a block it fully covers is removed, a block it only touches is unchanged. All of it saves or none of
it does. Same fields as Procurements_CreateScheduleBlock, which keeps both blocks as drawn instead. Block type
ids come from ResourceTypes_GetScheduleBlockTypes. Returns the new block's id, the ids of the second halves and
removed blocks, and the orders whose sent revision is now out of date.
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 | |
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
| Field | Type | Description |
|---|
| id | uuid | |
| tailIds | uuid[]| null | |
| removedIds | uuid[]| null | |
| changedOrders | SplitScheduleBlockResponseChangedOrder[]| null | |
SplitScheduleBlockResponseChangedOrder
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| versionNumber | integer | |