Update deal attribution share
curl --request PATCH \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/properties/{property_id}/deal_attributions/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"deal_attribution": {
"share_percentage": 123
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({deal_attribution: {share_percentage: 123}})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/properties/{property_id}/deal_attributions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/properties/{property_id}/deal_attributions/{id}"
payload = { "deal_attribution": { "share_percentage": 123 } }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}Properties
Update deal attribution share
Edit share_percentage on a frozen closed-won attribution nested under the property (ADR-013).
PATCH
/
api
/
v1
/
accounts
/
{account_id}
/
properties
/
{property_id}
/
deal_attributions
/
{id}
Update deal attribution share
curl --request PATCH \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/properties/{property_id}/deal_attributions/{id} \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"deal_attribution": {
"share_percentage": 123
}
}
'const options = {
method: 'PATCH',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({deal_attribution: {share_percentage: 123}})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/properties/{property_id}/deal_attributions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/properties/{property_id}/deal_attributions/{id}"
payload = { "deal_attribution": { "share_percentage": 123 } }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}{
"description": "<string>",
"errors": [
{
"field": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}{}{}