Mark my notifications read or dismissed
import requests
url = "https://platform.ankra.app/api/v1/org/notifications/bulk-update"
payload = { "notification_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({notification_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://platform.ankra.app/api/v1/org/notifications/bulk-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/notifications/bulk-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notification_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"updated_count": 123,
"rejected_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Notifications
Mark my notifications read or dismissed
Sets the token’s member’s own read or dismissed state, or the notification state, on up to 200 notifications of the organisation at once. Ids the member cannot see come back in rejected_ids and are not touched. The read state is the member’s own, so a viewer may set it. A token whose scope allowlist leaves out clusters.read is refused.
POST
/
api
/
v1
/
org
/
notifications
/
bulk-update
Mark my notifications read or dismissed
import requests
url = "https://platform.ankra.app/api/v1/org/notifications/bulk-update"
payload = { "notification_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({notification_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://platform.ankra.app/api/v1/org/notifications/bulk-update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/notifications/bulk-update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notification_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"updated_count": 123,
"rejected_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
The organisation the caller believes it is reading; a different organisation answers 409.
The user the caller believes it is reading as; a different user answers 409.
Body
application/json