cURL
curl --request POST \ --url https://api.botpress.cloud/v1/chat/states/{type}/{id}/{name}/expiry \ --header 'Content-Type: application/json' \ --data '{ "expiry": 1296000000.5 }'
{ "state": { "id": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "botId": "<string>", "conversationId": "<string>", "userId": "<string>", "name": "<string>", "type": "conversation", "payload": {} } }
Updates the State expiry.
State type
conversation
user
bot
integration
task
workflow
State id
State name
State expiry
The body is of type object.
object
Returns the updated State object if a valid identifier was provided. Returns an an error otherwise
The response is of type object.
Was this page helpful?