Docs

Create Resource State

POST /resource-states

POST/resource-states

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Organization tokenx-Organization-TokenOptionalRun **Authorize Organization** in the Authorization folder.

Adds a resource state. sortOrder is set to the end of the list.

Requires ResourceTypeDatabase.Edit permission.

Request Body

FieldTypeRequiredDescription
namestringRequiredState name, e.g. `Overtime`.
colorstringOptionalColor token.
iconstringOptionalIcon identifier.

Response

201 Created with the new state's id as a bare Guid.

Error Codes

HTTP StatusDescription
400Invalid arguments.