Docs

Create Schedule Block

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

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

Adds a schedule block to a need and re-evaluates its planned states. Block type ids come from ResourceTypes_GetScheduleBlockTypes. Returns the new block's id and the orders whose sent revision is now out of date because the edit changed what they cover (empty when none); no revision is created. A composite parent has no schedule of its own: schedule each component need instead (create blocks on one, then use Procurements_CopySchedule for the others). 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
changedOrdersCreateScheduleBlockResponseChangedOrder[]| null

CreateScheduleBlockResponseChangedOrder

FieldTypeDescription
iduuid
namestring| null
versionNumberinteger