Create Link Type
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/link-types \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source_type": "<string>",
"target_type": "<string>",
"cardinality": "many_to_one",
"key": "<string>",
"source_label": "<string>",
"target_label": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/link-types"
payload = {
"source_type": "<string>",
"target_type": "<string>",
"cardinality": "many_to_one",
"key": "<string>",
"source_label": "<string>",
"target_label": "<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({
source_type: '<string>',
target_type: '<string>',
cardinality: 'many_to_one',
key: '<string>',
source_label: '<string>',
target_label: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/link-types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}CRM objects
Create Link Type
Create a link type between two object types, at least one of them custom (e.g. subscription -> company, many_to_one).
POST
/
api
/
v1
/
crm
/
link-types
Create Link Type
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/crm/link-types \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source_type": "<string>",
"target_type": "<string>",
"cardinality": "many_to_one",
"key": "<string>",
"source_label": "<string>",
"target_label": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/link-types"
payload = {
"source_type": "<string>",
"target_type": "<string>",
"cardinality": "many_to_one",
"key": "<string>",
"source_label": "<string>",
"target_label": "<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({
source_type: '<string>',
target_type: '<string>',
cardinality: 'many_to_one',
key: '<string>',
source_label: '<string>',
target_label: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/link-types', 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.
