Update a digest recipient's opt-in
curl --request PATCH \
--url https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"opted_in": true
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}"
payload = { "opted_in": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({opted_in: true})
};
fetch('https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'opted_in' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}"
payload := strings.NewReader("{\n \"opted_in\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"opted_in\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"opted_in\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "ndr_01J8Z9K3P4",
"organization_id": "org_01J8Z9K3P4",
"user_id": "user_01J8Z9K3P4",
"email": "jordan@example.com",
"name": "Jordan Lee",
"role": "admin",
"opted_in": false,
"created_at": "2026-07-01T00:00:00.000Z",
"updated_at": "2026-08-07T12:00:00.000Z"
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}Notifications
Update a digest recipient's opt-in
Toggles whether a specific organization member, addressed by their path user_id, receives the notification digest. Owner or admin only. Returns 404 when the user is not a member of the organization.
PATCH
/
api
/
v1
/
notifications
/
digest
/
recipients
/
{user_id}
Update a digest recipient's opt-in
curl --request PATCH \
--url https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"opted_in": true
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}"
payload = { "opted_in": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({opted_in: true})
};
fetch('https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'opted_in' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}"
payload := strings.NewReader("{\n \"opted_in\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"opted_in\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/notifications/digest/recipients/{user_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"opted_in\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "ndr_01J8Z9K3P4",
"organization_id": "org_01J8Z9K3P4",
"user_id": "user_01J8Z9K3P4",
"email": "jordan@example.com",
"name": "Jordan Lee",
"role": "admin",
"opted_in": false,
"created_at": "2026-07-01T00:00:00.000Z",
"updated_at": "2026-08-07T12:00:00.000Z"
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Path Parameters
Body
application/json
Whether this member receives the notification digest.
Response
200 - application/json
The updated recipient with its new opt-in state.
The response is of type object.
⌘I