Docs
Get State Records
GET /procurement-resources/{resourceId}/state-records
GET
/procurement-resources/{resourceId}/state-recordsRequired 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. |
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
| Field | Type | Required | Description |
|---|---|---|---|
| resourceId | Guid | Required | The need (procurement resource). |
Response Fields
| Field | Type | Description |
|---|---|---|
| state | object | `{ id, name }`. |
| startDateTime | DateTimeOffset | Start. |
| endDateTime | DateTimeOffset| null | End. |
| triggeredByRuleName | string | The rule that put the need in this state. |
Error Codes
| HTTP Status | Description |
|---|---|
| 404 | Need not found. |