Update Object Attribute
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes/{attribute_key} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"label": "<string>",
"options": [
"<unknown>"
],
"is_required": true,
"is_archived": true,
"position": 123,
"formula": "<string>",
"prompt": "<string>",
"admin_only": true,
"is_sensitive": true
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes/{attribute_key}"
payload = {
"label": "<string>",
"options": ["<unknown>"],
"is_required": True,
"is_archived": True,
"position": 123,
"formula": "<string>",
"prompt": "<string>",
"admin_only": True,
"is_sensitive": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
options: ['<unknown>'],
is_required: true,
is_archived: true,
position: 123,
formula: '<string>',
prompt: '<string>',
admin_only: true,
is_sensitive: true
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes/{attribute_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));CRM objects
Update Object Attribute
Rename an attribute, change its options, make it required, reorder or archive it. Returns the object type.
PUT
/
api
/
v1
/
crm
/
objects
/
{type_key}
/
attributes
/
{attribute_key}
Update Object Attribute
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes/{attribute_key} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"label": "<string>",
"options": [
"<unknown>"
],
"is_required": true,
"is_archived": true,
"position": 123,
"formula": "<string>",
"prompt": "<string>",
"admin_only": true,
"is_sensitive": true
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes/{attribute_key}"
payload = {
"label": "<string>",
"options": ["<unknown>"],
"is_required": True,
"is_archived": True,
"position": 123,
"formula": "<string>",
"prompt": "<string>",
"admin_only": True,
"is_sensitive": True
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
options: ['<unknown>'],
is_required: true,
is_archived: true,
position: 123,
formula: '<string>',
prompt: '<string>',
admin_only: true,
is_sensitive: true
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes/{attribute_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Body
application/json
Response
200
OK
