Update Account Variables
Merge variables into an account’s variables.
Upsert semantics: provided keys are written, other keys are kept.
An account holds at most 200 variables. A null value clears the variable but keeps the key counting toward the limit; use the DELETE endpoint to remove a key and free its slot.
Requires the accounts:write scope on the API key.
PATCH
/
v1
/
accounts
/
{account_id}
/
variables
Update Account Variables
curl --request PATCH \
--url https://api.topo.io/v1/accounts/{account_id}/variables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variables": {}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({variables: {}})
};
fetch('https://api.topo.io/v1/accounts/{account_id}/variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/accounts/{account_id}/variables"
payload = { "variables": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"variables": {}
}Authorizations
Bearer API key issued from Settings → Developers.
Path Parameters
ID of the account.
Body
application/json
Update Account Variables payload
Was this page helpful?
⌘I
Update Account Variables
curl --request PATCH \
--url https://api.topo.io/v1/accounts/{account_id}/variables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variables": {}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({variables: {}})
};
fetch('https://api.topo.io/v1/accounts/{account_id}/variables', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/accounts/{account_id}/variables"
payload = { "variables": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"variables": {}
}