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
| 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 | |
| changedOrders | CreateScheduleBlockResponseChangedOrder[]| null | |
CreateScheduleBlockResponseChangedOrder
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| versionNumber | integer | |