Docs
Update Schedule Block
PUT /procurement-resources/{resourceId}/schedule-blocks/{blockId}
PUT
/procurement-resources/{resourceId}/schedule-blocks/{blockId}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. |
Replaces a block's fields and re-evaluates the need's planned states.
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 |
|---|---|---|---|
| resourceId | Guid | Required | The need (procurement resource). |
| blockId | Guid | Required | The schedule block. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| typeId | Guid | Required | A schedule block type. |
| name | string | Optional | Display name. |
| startDateTime | DateTimeOffset | Required | Start. Before `endDateTime`. |
| endDateTime | DateTimeOffset | Required | End. |
| activityId | Guid? | Optional | Linked activity. |
| notes | string | Optional | Notes. |
| areaId | Guid? | Optional | Area context for the block. |
| collaboratorId | Guid? | Optional | Collaborator context for the block. |
Response
200 OK with [{ id, name, versionNumber }]: orders a revision was minted on because this edit changed what a sent order covers. Empty when none.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Need or block not found. |