Create Object Attribute
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"label": "<string>",
"attribute_type": "<string>",
"key": "<string>",
"options": [
"<unknown>"
],
"is_required": false,
"is_unique": false,
"formula": "<string>",
"prompt": "<string>",
"admin_only": false,
"is_sensitive": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes"
payload = {
"label": "<string>",
"attribute_type": "<string>",
"key": "<string>",
"options": ["<unknown>"],
"is_required": False,
"is_unique": False,
"formula": "<string>",
"prompt": "<string>",
"admin_only": False,
"is_sensitive": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
attribute_type: '<string>',
key: '<string>',
options: ['<unknown>'],
is_required: false,
is_unique: false,
formula: '<string>',
prompt: '<string>',
admin_only: false,
is_sensitive: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}CRM objects
Create Object Attribute
Add an attribute to a custom object type. Its key and type never change. Returns the object type.
POST
/
api
/
v1
/
crm
/
objects
/
{type_key}
/
attributes
Create Object Attribute
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"label": "<string>",
"attribute_type": "<string>",
"key": "<string>",
"options": [
"<unknown>"
],
"is_required": false,
"is_unique": false,
"formula": "<string>",
"prompt": "<string>",
"admin_only": false,
"is_sensitive": false
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes"
payload = {
"label": "<string>",
"attribute_type": "<string>",
"key": "<string>",
"options": ["<unknown>"],
"is_required": False,
"is_unique": False,
"formula": "<string>",
"prompt": "<string>",
"admin_only": False,
"is_sensitive": False
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
label: '<string>',
attribute_type: '<string>',
key: '<string>',
options: ['<unknown>'],
is_required: false,
is_unique: false,
formula: '<string>',
prompt: '<string>',
admin_only: false,
is_sensitive: false
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/attributes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Body
application/json
Response
201 - application/json
Created
The response is of type Response · object.
