Schedule a delivery
Deliver a question to an authorized group at a local time.
Create and verify the question first. Ask the account team to configure the recipient group and its row access. Choose weekday, time and an IANA timeZone so the schedule follows local clock changes.
curl
curl -X POST "$RDC_BASE_URL/reports/v1/schedules" \
-H "Authorization: Bearer $RDC_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"operationId": "41800000-0000-4000-8000-000000000131",
"expectedRevision": 0,
"id": "monday-management",
"weekday": "Monday",
"time": "08:00",
"timeZone": "Europe/Bucharest",
"recipientGroup": "management",
"questionId": "revenue-by-product",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
},
"enabled": true
}' JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/schedules`, {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"operationId": "41800000-0000-4000-8000-000000000131",
"expectedRevision": 0,
"id": "monday-management",
"weekday": "Monday",
"time": "08:00",
"timeZone": "Europe/Bucharest",
"recipientGroup": "management",
"questionId": "revenue-by-product",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
},
"enabled": true
}),
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'POST',
f'{os.environ["RDC_BASE_URL"]}/reports/v1/schedules',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
json={
'operationId': '41800000-0000-4000-8000-000000000131',
'expectedRevision': 0,
'id': 'monday-management',
'weekday': 'Monday',
'time': '08:00',
'timeZone': 'Europe/Bucharest',
'recipientGroup': 'management',
'questionId': 'revenue-by-product',
'filters': {
'period': '2026-10',
'companyId': None,
'department': None,
},
'enabled': True,
},
)
result = response.json() PHP
<?php
$body = <<<'JSON'
{
"operationId": "41800000-0000-4000-8000-000000000131",
"expectedRevision": 0,
"id": "monday-management",
"weekday": "Monday",
"time": "08:00",
"timeZone": "Europe/Bucharest",
"recipientGroup": "management",
"questionId": "revenue-by-product",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
},
"enabled": true
}
JSON;
$curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/schedules');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $body,
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/schedules");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
"operationId": "41800000-0000-4000-8000-000000000131",
"expectedRevision": 0,
"id": "monday-management",
"weekday": "Monday",
"time": "08:00",
"timeZone": "Europe/Bucharest",
"recipientGroup": "management",
"questionId": "revenue-by-product",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
},
"enabled": true
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"operationId": "41800000-0000-4000-8000-000000000131",
"status": "accepted",
"aggregateRevision": 1
} The supplied filters select a fixed calendar month. This schedule does not automatically advance the period. For a different month, create a schedule with the intended filters and coordinate active schedules through the account team.
curl
curl "$RDC_BASE_URL/reports/v1/schedules/monday-management" \
-H "Authorization: Bearer $RDC_TOKEN" JavaScript
const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/schedules/monday-management`, {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.RDC_TOKEN}`,
},
});
const result = await response.json(); Python
import os
import requests
response = requests.request(
'GET',
f'{os.environ["RDC_BASE_URL"]}/reports/v1/schedules/monday-management',
headers={
'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
},
)
result = response.json() PHP
<?php
$curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/schedules/monday-management');
curl_setopt_array($curl, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('RDC_TOKEN'),
],
]);
$result = json_decode(curl_exec($curl), true);
curl_close($curl); C#
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/schedules/monday-management");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync(); {
"id": "monday-management",
"weekday": "Monday",
"time": "08:00",
"timeZone": "Europe/Bucharest",
"recipientGroup": "management",
"lastDelivery": {
"at": "2026-11-16T06:00:00Z",
"status": "delivered"
},
"revision": 1,
"questionId": "revenue-by-product",
"filters": {
"period": "2026-10",
"companyId": null,
"department": null
},
"enabled": true
} An accepted create operation does not mean an e-mail was delivered. Check lastDelivery only after a delivery occurs. Failed source refreshes prevent new runs and must be corrected before delivery can succeed. recipient_forbidden requires correcting group access, not changing the receiver to bypass it.