Docs

Split Schedule Block

POST /procurement-resources/{resourceId}/schedule-blocks/split

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

FieldTypeRequiredDescription
resourceIduuidRequired

Request Body

FieldTypeRequiredDescription
typeIduuidOptional
namestringOptional
startDateTimedate-timeOptional
endDateTimedate-timeOptional
activityIduuidOptional
notesstringOptional
areaIduuidOptional
collaboratorIduuidOptional

Response

FieldTypeDescription
iduuid
tailIdsuuid[]| null
removedIdsuuid[]| null
changedOrdersSplitScheduleBlockResponseChangedOrder[]| null

SplitScheduleBlockResponseChangedOrder

FieldTypeDescription
iduuid
namestring| null
versionNumberinteger