Docs
Create Schedule Block
POST /procurement-resources/{resourceId}/schedule-blocks
POST
/procurement-resources/{resourceId}/schedule-blocksRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your 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
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | Guid | Required | The ID of the procurement resource. Replace `{{resourceId}}` in the URL. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| typeId | Guid | Required | ID of the schedule block type to use. |
| name | string | Optional | Optional display name for this block. |
| startDateTime | DateTimeOffset | Required | Block start time. Must be before `endDateTime`. |
| endDateTime | DateTimeOffset | Required | Block end time. Must be after `startDateTime`. |
| activityId | Guid? | Optional | Activity to link this block to. |
| notes | string | Optional | Optional notes. |
Response
Returns 201 Created with the new schedule block's ID in the body.