Set the caller's annotation on a signal
curl --request PUT \
--url https://api.usenexio.com/records/opportunity-signals/{opportunityID}/annotation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"revision": 123,
"note": "<string>",
"rating": "<string>",
"reasons": [
"<string>"
]
}
'import requests
url = "https://api.usenexio.com/records/opportunity-signals/{opportunityID}/annotation"
payload = {
"request_id": "<string>",
"revision": 123,
"note": "<string>",
"rating": "<string>",
"reasons": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '<string>',
revision: 123,
note: '<string>',
rating: '<string>',
reasons: ['<string>']
})
};
fetch('https://api.usenexio.com/records/opportunity-signals/{opportunityID}/annotation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"annotation": {
"note": "<string>",
"rating": "<string>",
"reasons": [
"<string>"
]
},
"receipt_id": "<string>",
"revision": 123,
"triage": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}opportunity-signals
Set the caller's annotation on a signal
Writes the acting person’s own annotation at the revision the caller read; a stale revision is a 409. A repeat with the same request_id answers the first write. A scoped key also needs actions:write.
PUT
/
records
/
opportunity-signals
/
{opportunityID}
/
annotation
Set the caller's annotation on a signal
curl --request PUT \
--url https://api.usenexio.com/records/opportunity-signals/{opportunityID}/annotation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"revision": 123,
"note": "<string>",
"rating": "<string>",
"reasons": [
"<string>"
]
}
'import requests
url = "https://api.usenexio.com/records/opportunity-signals/{opportunityID}/annotation"
payload = {
"request_id": "<string>",
"revision": 123,
"note": "<string>",
"rating": "<string>",
"reasons": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
request_id: '<string>',
revision: 123,
note: '<string>',
rating: '<string>',
reasons: ['<string>']
})
};
fetch('https://api.usenexio.com/records/opportunity-signals/{opportunityID}/annotation', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"annotation": {
"note": "<string>",
"rating": "<string>",
"reasons": [
"<string>"
]
},
"receipt_id": "<string>",
"revision": 123,
"triage": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Headers
The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.
Body
application/json