Docs

Get State Records

GET /procurement-resources/{resourceId}/state-records

GET/procurement-resources/{resourceId}/state-records

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.

Returns the resource-state timeline the rules engine computed for a need.

Requires EventBasicAccess permission on the event.
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).

Response Fields

FieldTypeDescription
stateobject`{ id, name }`.
startDateTimeDateTimeOffsetStart.
endDateTimeDateTimeOffset| nullEnd.
triggeredByRuleNamestringThe rule that put the need in this state.

Error Codes

HTTP StatusDescription
404Need not found.