Docs

Copy Schedule To Many

POST /procurement-resources/{sourceResourceId}/copy-schedule

POST/procurement-resources/{sourceResourceId}/copy-schedule

Appends 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

FieldTypeRequiredDescription
sourceResourceIduuidRequired

Request Body

FieldTypeRequiredDescription
targetResourceIdsuuid[]Optional
skipTargetsWithBlocksbooleanOptional

Response

FieldTypeDescription
copiedTargetIdsuuid[]| null
skippedTargetIdsuuid[]| null
blocksPerTargetinteger
changedOrdersCopyScheduleResponseChangedOrder[]| null

CopyScheduleResponseChangedOrder

FieldTypeDescription
iduuid
namestring| null
versionNumberinteger