Docs
Create Resource State
POST /resource-states
POST
/resource-statesRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **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
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | State name, e.g. `Overtime`. |
| color | string | Optional | Color token. |
| icon | string | Optional | Icon identifier. |
Response
201 Created with the new state's id as a bare Guid.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |