Skip to main content
PATCH
/
variables
/
{id}
Update Variable
curl --request PATCH \
  --url https://api.example.com/variables/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "variable": {
    "value": "<string>"
  }
}
'
{
  "variable": {
    "id": "kSuB9Gf6aD4",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "type": "ENV",
    "value": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Enter 'Bearer' followed by a space and your token (e.g., 'Bearer ${HASMCP_ACCESS_TOKEN}').

Path Parameters

id
string
required

Variable ID

Body

application/json
variable
object

Response

200 - application/json

Variable updated

variable
object