Docs

Update Schedule Block

PUT /procurement-resources/{resourceId}/schedule-blocks/{blockId}

PUT/procurement-resources/{resourceId}/schedule-blocks/{blockId}

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.

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

FieldTypeRequiredDescription
resourceIdGuidRequiredThe need (procurement resource).
blockIdGuidRequiredThe schedule block.

Request Body

FieldTypeRequiredDescription
typeIdGuidRequiredA schedule block type.
namestringOptionalDisplay name.
startDateTimeDateTimeOffsetRequiredStart. Before `endDateTime`.
endDateTimeDateTimeOffsetRequiredEnd.
activityIdGuid?OptionalLinked activity.
notesstringOptionalNotes.
areaIdGuid?OptionalArea context for the block.
collaboratorIdGuid?OptionalCollaborator 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 StatusDescription
400Invalid arguments.
404Need or block not found.