Delete an unused variable. Returns 409 if contact values still exist.
curl --request DELETE \
--url https://omni-api.sendblue.com/variables/{variable_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/variables/{variable_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/variables/{variable_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Delete an unused variable. Returns 409 if contact values still exist.
If completion is unknown, read the variable by ID to confirm whether it still exists before issuing another change.
Required permission: variables:write. Accepted credentials: a signed-in person, an API key, the account token.
DELETE
/
variables
/
{variable_id}
Delete an unused variable. Returns 409 if contact values still exist.
curl --request DELETE \
--url https://omni-api.sendblue.com/variables/{variable_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omni-api.sendblue.com/variables/{variable_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omni-api.sendblue.com/variables/{variable_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": {
"code": "invalid_request",
"message": "Unknown field",
"details": {
"field": "colour"
}
}
}Authorizations
personbearerlegacyKeyId & legacyKeySecret
Response
Deleted.