Update Object Type
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"singular_label": "<string>",
"plural_label": "<string>",
"description": "<string>",
"title_attribute": "<string>",
"status": "<string>",
"alert_rules": [
{}
],
"rules": [
{}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}"
payload = {
"singular_label": "<string>",
"plural_label": "<string>",
"description": "<string>",
"title_attribute": "<string>",
"status": "<string>",
"alert_rules": [{}],
"rules": [{}]
}
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({
singular_label: '<string>',
plural_label: '<string>',
description: '<string>',
title_attribute: '<string>',
status: '<string>',
alert_rules: [{}],
rules: [{}]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));CRM objects
Update Object Type
Update a custom object type’s labels, description, title attribute or status. Its key never changes.
PUT
/
api
/
v1
/
crm
/
objects
/
{type_key}
Update Object Type
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"singular_label": "<string>",
"plural_label": "<string>",
"description": "<string>",
"title_attribute": "<string>",
"status": "<string>",
"alert_rules": [
{}
],
"rules": [
{}
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}"
payload = {
"singular_label": "<string>",
"plural_label": "<string>",
"description": "<string>",
"title_attribute": "<string>",
"status": "<string>",
"alert_rules": [{}],
"rules": [{}]
}
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({
singular_label: '<string>',
plural_label: '<string>',
description: '<string>',
title_attribute: '<string>',
status: '<string>',
alert_rules: [{}],
rules: [{}]
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Body
application/json
Response
200
OK
