Skip to main content
POST
/
io.pocketenv.variable.updateVariable
cURL
curl --request POST \
  --url https://api.pocketenv.io/xrpc/io.pocketenv.variable.updateVariable \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "variable": {
    "name": "<string>",
    "value": "<string>",
    "sandboxId": "<string>"
  }
}
'
{
  "error": "<string>",
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
id
string
required

The ID of the variable to update.

variable
object
required

Response

OK