Set a custom attribute value
curl --request POST \
--url https://back.leap.onclarity.com/api/custom-attributes/values/set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"object_id": 123,
"key": "<string>",
"value": null
}
'import requests
url = "https://back.leap.onclarity.com/api/custom-attributes/values/set"
payload = {
"object_id": 123,
"key": "<string>",
"value": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({object_id: 123, key: '<string>', value: null})
};
fetch('https://back.leap.onclarity.com/api/custom-attributes/values/set', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"values": {},
"meta": {}
}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}Customers
Set a custom attribute value
POST
/
api
/
custom-attributes
/
values
/
set
Set a custom attribute value
curl --request POST \
--url https://back.leap.onclarity.com/api/custom-attributes/values/set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"object_id": 123,
"key": "<string>",
"value": null
}
'import requests
url = "https://back.leap.onclarity.com/api/custom-attributes/values/set"
payload = {
"object_id": 123,
"key": "<string>",
"value": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({object_id: 123, key: '<string>', value: null})
};
fetch('https://back.leap.onclarity.com/api/custom-attributes/values/set', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"values": {},
"meta": {}
}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}{
"code": "<string>",
"status": "error",
"message": "<string>",
"extra": {}
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.
Body
application/json