Archive a Forward Schedule.
Request headers
|
Header |
Required |
Description |
|
|
Yes |
|
|
|
No |
Optional idempotency key for unsafe requests. |
Path parameters
|
Parameter |
Type |
Required |
Description |
|
|
string |
Yes |
Forward Schedule ID. |
Example request
curl -s -X POST 'https://api.qoder.com.cn/api/v1/forward/schedules/sched_019f00112233445566778899aabbccdd/archive' \
-H "Authorization: Bearer $QODER_PAT"
Example response
HTTP 200 OK
{
"id": "sched_019f00112233445566778899aabbccdd",
"identity_id": "idn_019eabc123",
"template_id": "tmpl_support",
"name": "Daily tech brief",
"status": "active",
"archived_at": "2026-06-22T12:00:00Z",
"created_at": "2026-06-22T10:00:00Z",
"updated_at": "2026-06-22T12:00:00Z"
}
Response fields
Returns the archived Schedule object with archived_at set.
Errors
|
HTTP |
Type |
Code |
Trigger |
|
401 |
|
|
PAT invalid or expired. |
|
404 |
|
|
Schedule does not exist. |
|
409 |
|
|
Schedule is already archived. |
Notes
-
Archive is a lifecycle terminal state for the Schedule.
-
Schedule Runs remain queryable after the Schedule is archived.