Docs

Update Resource State

PUT /resource-states/{resourceStateId}

PUT/resource-states/{resourceStateId}

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.

Updates a resource state's display fields and active flag. sortOrder is managed by the server and cannot be changed through this endpoint.

Setting isActive=false is the correct way to soft-deprecate a state that is still referenced by historical rule thresholds or state records. Deactivated states remain in the listing but signal to pickers that they should not be offered for new selections.

Requires EventSettings permission on the event.

Path Parameters

FieldTypeRequiredDescription
resourceStateIdGuidRequiredThe ID of the state to update.

Request Body

FieldTypeRequiredDescription
namestringRequiredDisplay name. Must not be empty.
categorystringRequiredOne of `Regular`, `Premium`, `Penalty`, `Violation`.
colorstring?OptionalHex color or token.
isActiveboolRequired`true` keeps the state in pickers; `false` soft-deprecates.

Response

200 OK — No response body.

Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid token.
NOT_FOUND404Resource state not found on this event.
BAD_REQUEST400Name empty or category invalid.