Docs
Copy Schedule To Many
POST /procurement-resources/{sourceResourceId}/copy-schedule
POST
/procurement-resources/{sourceResourceId}/copy-scheduleAppends a copy of every schedule block on the source need to each target need in one write: one refused target refuses the call and nothing is copied. Advance-request links are not copied. With skipTargetsWithBlocks, a target that already has blocks is left alone and reported as skipped. Refused when the list is empty or names the source, a need outside the event, or a composite parent; a composite parent source is refused too. Need ids come from Procurements_GetProcurements. Returns the targets copied to, the targets skipped, the number of blocks each copied target received, and the orders whose sent revision is now out of date.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| sourceResourceId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| targetResourceIds | uuid[] | Optional | |
| skipTargetsWithBlocks | boolean | Optional |
Response
| Field | Type | Description |
|---|---|---|
| copiedTargetIds | uuid[]| null | |
| skippedTargetIds | uuid[]| null | |
| blocksPerTarget | integer | |
| changedOrders | CopyScheduleResponseChangedOrder[]| null |
CopyScheduleResponseChangedOrder
| Field | Type | Description |
|---|---|---|
| id | uuid | |
| name | string| null | |
| versionNumber | integer |