Create Field
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/fields \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entity": "<string>",
"label": "<string>",
"field_type": "<string>",
"key": "<string>",
"options": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/fields"
payload = {
"entity": "<string>",
"label": "<string>",
"field_type": "<string>",
"key": "<string>",
"options": ["<string>"]
}
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({
entity: '<string>',
label: '<string>',
field_type: '<string>',
key: '<string>',
options: ['<string>']
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}CRM
Create Field
Create a custom field.
POST
/
api
/
v1
/
crm
/
fields
Create Field
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/fields \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"entity": "<string>",
"label": "<string>",
"field_type": "<string>",
"key": "<string>",
"options": [
"<string>"
]
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/fields"
payload = {
"entity": "<string>",
"label": "<string>",
"field_type": "<string>",
"key": "<string>",
"options": ["<string>"]
}
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({
entity: '<string>',
label: '<string>',
field_type: '<string>',
key: '<string>',
options: ['<string>']
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Authorizations
Body
application/json
Response
201 - application/json
Created
The response is of type Response · object.
