customization

Custom States Update

POST
Updates a custom state.

Request

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

Response

This endpoint returns an object
custom_state
object
POST
1curl -X POST https://api.devrev.ai/states.custom.update \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "id": "id"
6}'
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}