customization

Custom States Create

POST
Creates a custom state.

Request

This endpoint expects an object.
name
stringRequired
The name of the custom state.
ordinal
integerRequired
Ordinal of the custom state used to identify system states.
is_final
booleanOptional
Whether this is a final state.

Response

This endpoint returns an object
custom_state
object
POST
1curl -X POST https://api.devrev.ai/states.custom.create \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "name": "name",
6 "ordinal": 1
7}'
200Successful
1{
2 "custom_state": {
3 "id": "id",
4 "created_date": "2023-01-01T12:00:00Z",
5 "display_id": "display_id",
6 "modified_date": "2023-01-01T12:00:00Z"
7 }
8}