Remove someone from an inbox
curl --request DELETE \
--url https://{organization}.rescueconsole.com/api/communications/inboxes/{id}/access/{accessId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/inboxes/{id}/access/{accessId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/communications/inboxes/{id}/access/{accessId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"is_restricted": true,
"results": [
{
"id": "<string>",
"person_id": "<string>",
"role_key": "<string>",
"label": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Inboxes
Remove someone from an inbox
Removes one rule from an inbox’s access list. Removing the last rule does NOT open the inbox: it stays restricted, readable only by Organization admins, until it is opened on purpose. Needs write on Communications.
DELETE
/
api
/
communications
/
inboxes
/
{id}
/
access
/
{accessId}
Remove someone from an inbox
curl --request DELETE \
--url https://{organization}.rescueconsole.com/api/communications/inboxes/{id}/access/{accessId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/communications/inboxes/{id}/access/{accessId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/communications/inboxes/{id}/access/{accessId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"is_restricted": true,
"results": [
{
"id": "<string>",
"person_id": "<string>",
"role_key": "<string>",
"label": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.