Docs

Move Schedule Block

PUT /procurement-resources/{sourceResourceId}/schedule-blocks/{blockId}/move/{targetResourceId}

PUT/procurement-resources/{sourceResourceId}/schedule-blocks/{blockId}/move/{targetResourceId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Moves a block to another need and sets its new times. The block keeps its id, request links, area and collaborator. Both needs are re-evaluated.

Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Path Parameters

FieldTypeRequiredDescription
sourceResourceIdGuidRequiredThe need the block is on.
blockIdGuidRequiredThe schedule block.
targetResourceIdGuidRequiredThe need to move it to.

Request Body

FieldTypeRequiredDescription
startDateTimeDateTimeOffsetRequiredNew start.
endDateTimeDateTimeOffsetRequiredNew end.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Same need, invalid times, or the target is a composite parent.
404Need or block not found.