Docs

Create Schedule Block

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

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

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.

Adds a new schedule block to a procurement resource. Creating a block recalculates the resource's derived startDateTime and endDateTime as the min/max of all block times.

Path Parameters

FieldTypeRequiredDescription
resourceIdGuidRequiredThe ID of the procurement resource. Replace `{{resourceId}}` in the URL.

Request Body

FieldTypeRequiredDescription
typeIdGuidRequiredID of the schedule block type to use.
namestringOptionalOptional display name for this block.
startDateTimeDateTimeOffsetRequiredBlock start time. Must be before `endDateTime`.
endDateTimeDateTimeOffsetRequiredBlock end time. Must be after `startDateTime`.
activityIdGuid?OptionalActivity to link this block to.
notesstringOptionalOptional notes.

Response

Returns 201 Created with the new schedule block's ID in the body.