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 Resources_GetScheduleBlockTypes. Returns the new block's id and the orders that got a new revision because the edit changed what an already sent order covers (empty when none). 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).

Path Parameters

FieldTypeRequiredDescription
resourceIduuidRequired

Request Body

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

Response

FieldTypeDescription
iduuid
revisedOrdersRevisedOrderResponse[]| null

RevisedOrderResponse

FieldTypeDescription
iduuid
namestring| null
versionNumberinteger