Docs
Move Schedule Block
PUT /procurement-resources/{sourceResourceId}/schedule-blocks/{blockId}/move/{targetResourceId}
PUT
/procurement-resources/{sourceResourceId}/schedule-blocks/{blockId}/move/{targetResourceId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| sourceResourceId | Guid | Required | The need the block is on. |
| blockId | Guid | Required | The schedule block. |
| targetResourceId | Guid | Required | The need to move it to. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| startDateTime | DateTimeOffset | Required | New start. |
| endDateTime | DateTimeOffset | Required | New end. |
Response
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Same need, invalid times, or the target is a composite parent. |
| 404 | Need or block not found. |