cURL
curl --request PATCH \ --url https://api.botpress.cloud/v1/chat/states/{type}/{id}/{name} \ --header 'Content-Type: application/json' \ --data '{ "payload": {} }'
{ "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 object by setting the values of the parameters passed.
State type
conversation
user
bot
integration
task
workflow
State id
State name
State content
Payload is the content of the state defined by your bot.
Returns the updated State object if a valid identifier was provided. Returns an an error otherwise
The state object represents the current payload. A state is always linked to either a bot, a conversation or a user.
Show child attributes
Was this page helpful?