Update Object Access
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/access \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"default_role": "<string>",
"grants": [
{
"role": "<string>",
"user_id": "<string>",
"team_id": "<string>"
}
],
"row_filter": {}
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/access"
payload = {
"default_role": "<string>",
"grants": [
{
"role": "<string>",
"user_id": "<string>",
"team_id": "<string>"
}
],
"row_filter": {}
}
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({
default_role: '<string>',
grants: [{role: '<string>', user_id: '<string>', team_id: '<string>'}],
row_filter: {}
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));CRM objects
Update Object Access
Share a custom object type with your staff: a role for everyone, roles for people and teams, and a filter on the records non-admins reach. A new type is only visible to its creator and to administrators. Requires the admin role on the type.
PUT
/
api
/
v1
/
crm
/
objects
/
{type_key}
/
access
Update Object Access
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/access \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"default_role": "<string>",
"grants": [
{
"role": "<string>",
"user_id": "<string>",
"team_id": "<string>"
}
],
"row_filter": {}
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/access"
payload = {
"default_role": "<string>",
"grants": [
{
"role": "<string>",
"user_id": "<string>",
"team_id": "<string>"
}
],
"row_filter": {}
}
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({
default_role: '<string>',
grants: [{role: '<string>', user_id: '<string>', team_id: '<string>'}],
row_filter: {}
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/crm/objects/{type_key}/access', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Body
application/json
Response
200
OK
