Docs
Create Schedule Block
POST /procurement-resources/{resourceId}/schedule-blocks
POST
/procurement-resources/{resourceId}/schedule-blocksAdds 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
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| typeId | uuid | Optional | |
| name | string | Optional | |
| startDateTime | date-time | Optional | |
| endDateTime | date-time | Optional | |
| activityId | uuid | Optional | |
| notes | string | Optional | |
| areaId | uuid | Optional | |
| collaboratorId | uuid | Optional |
Response
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| revisedOrders | RevisedOrderResponse[]| null |
RevisedOrderResponse
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null | |
| versionNumber | integer |