Skip to main content
POST
/
services
/
{service}
/
state
Modify a service state
curl --request POST \
  --url https://api.example.com/services/{service}/state \
  --header 'Content-Type: application/json' \
  --data '
{
  "object_key": "<string>",
  "new_state": {},
  "version": "<string>"
}
'
{
  "message": "<string>",
  "restate_code": "<string>"
}

Path Parameters

service
string
required

Fully qualified service name.

Body

application/json
object_key
string
required

To what virtual object key to apply this change

new_state
New State · object
required

The new state to replace the previous state with

version
string | null

If set, the latest version of the state is compared with this value and the operation will fail when the versions differ.

Response

Accepted