Remove an export schedule
Mark an already known schedule deleted so that, once saved and observed, it is excluded from future scheduling selection. This changes configuration; it does not cancel already selected, queued or running work, remove existing requests/files or retract notifications.
| Task | Operation | Result |
|---|---|---|
| Remove a known schedule from future selection | DELETE /api/v1/admin/export-requests/scheduler/{id} | HTTP200 Boolean acknowledgement |
Before you start
Use the selected publication's public key and an existing active admin, partner or root staff session authorized there. Readonly, manager, support and service-account permissions do not grant this operation. Existing schedules are not restricted to their creator. Confirm the already known schedule ID with its authorized owner; it differs from an export request ID. See credential transport.
| Header | Purpose |
|---|---|
resource | Required publication public key |
token | Required eligible staff session token |
Accept: application/json | Request JSON |
The DELETE takes no body, so no request Content-Type is needed. Saves and configured events can precede failure; acknowledgement alone does not verify persistence or event delivery. Such events may cause notifications or other effects. Saving the deletion marker can also update timestamps and reserialize saved selections. No automatic rollback or harmless repeat is promised.
All examples are synthetic and unexecuted, using fictional known schedule7201. Set WALLKIT_API_BASE to scheme and host only, without a trailing slash or /api/v1, plus RESOURCE_KEY and STAFF_TOKEN. Use Bash/cURL with Python3 response checks, Node.js18+ native fetch in an .mjs file or Python3 urllib. Each client makes one request and no follow-up/retry; cURL removes its temporary response. See sample runtimes.
Delete a schedule
DELETE /api/v1/admin/export-requests/scheduler/{id}
Mark a known schedule deleted. When that change is persisted and observed, the schedule is excluded from future scheduling selection. Existing export requests and files remain. The shared effects and cancellation limits apply.
| Input | Location / requirement | Meaning |
|---|---|---|
id | Required path integer, digits | Already known schedule in the selected publication |
No body or action-specific query input is required. A repeat may return Model already deleted; HTTP 200 on every repeat is not promised.
Request
Each alternative performs one DELETE, checks HTTP 200/error/object/Boolean acknowledgement and stops. They are independent illustrations, not instructions to run every version or delete again.
(
response_file=$(mktemp) || exit 1
trap 'rm -f "$response_file"' EXIT
if ! status=$(curl --fail --silent --request DELETE \
"$WALLKIT_API_BASE/api/v1/admin/export-requests/scheduler/7201" \
--header 'Accept: application/json' --header "resource: $RESOURCE_KEY" \
--header "token: $STAFF_TOKEN" --output "$response_file" --write-out '%{http_code}'); then
printf '%s\n' 'Schedule deletion outcome unavailable. Review intended configuration with support.' >&2
exit 1
fi
python3 - "$response_file" "$status" <<'PY'
import json
import sys
try:
if sys.argv[2] != "200":
raise ValueError()
with open(sys.argv[1], encoding="utf-8") as stream:
result = json.load(stream)
if not isinstance(result, dict) or "error" in result or result.get("success") is not True:
raise ValueError()
print("Deletion acknowledgement received; persistence and cancellation are not confirmed.")
except Exception:
raise SystemExit("Schedule deletion outcome unavailable. Review intended configuration with support.") from None
PY
)
try {
const url = new URL("/api/v1/admin/export-requests/scheduler/7201", process.env.WALLKIT_API_BASE);
const response = await fetch(url, { method: "DELETE", headers: {
Accept: "application/json", resource: process.env.RESOURCE_KEY, token: process.env.STAFF_TOKEN
} });
if (response.status !== 200) throw new Error();
const result = await response.json();
if (!result || typeof result !== "object" || Array.isArray(result) ||
Object.hasOwn(result, "error") || result.success !== true) throw new Error();
console.log("Deletion acknowledgement received; persistence and cancellation are not confirmed.");
} catch {
console.error("Schedule deletion outcome unavailable. Review intended configuration with support.");
process.exitCode = 1;
}
import json
import os
from urllib.request import Request, urlopen
try:
url = os.environ["WALLKIT_API_BASE"] + "/api/v1/admin/export-requests/scheduler/7201"
request = Request(url, method="DELETE", headers={"Accept": "application/json",
"resource": os.environ["RESOURCE_KEY"], "token": os.environ["STAFF_TOKEN"]})
with urlopen(request) as response:
if response.status != 200:
raise ValueError()
result = json.load(response)
if not isinstance(result, dict) or "error" in result or result.get("success") is not True:
raise ValueError()
print("Deletion acknowledgement received; persistence and cancellation are not confirmed.")
except Exception:
raise SystemExit("Schedule deletion outcome unavailable. Review intended configuration with support.") from None
Acknowledgement
HTTP 200; complete synthetic business acknowledgement, without an item or deletion timestamp:
{"success": true}
This acknowledges the returned result; it does not confirm that the deletion was saved or that work stopped. Next, take an uncertain outcome to the authorized publication owner or support to review the intended configuration. Do not repeat the delete or recreate a schedule automatically.
Failures and recovery
A missing schedule returns this synthetic HTTP404 error:
{"error": "model_not_found", "error_description": "Model not found", "req_guid": "SYNTHETIC_REQUEST_REFERENCE"}
| HTTP status | API code / response shape | Cause | Next action |
|---|---|---|---|
| 404 | model_not_found / Model not found | Known schedule unavailable | Confirm the intended known ID with its owner; do not guess another ID |
| 404 | model_not_found / Model already deleted | Schedule already marked deleted | Review intended configuration with its owner/support; do not recreate or repeat automatically |
| 403 | wrong_resource / Model not related to current resource | Schedule/publication mismatch | Confirm intended context with its owner; do not probe other scopes |
| 409 | invalid_data / Delete export request scheduler has been failed or Error delete export request scheduler | Caught deletion failure | Keep outcome uncertain and ask support to inspect saved state; earlier effects may exist |
| 409 | invalid_data / another returned export-exception description | Another caught export failure | Give support an appropriate request reference; no rollback or success is inferred |
| Other/shared status, structured error or unusable response | No usable acknowledgement | Session, access, native handling or response failure | Keep uncertainty visible and use shared recovery; never substitute success |
Keep recipients and saved selections out of logs as well as credentials and raw errors. Shared caller failures below require a different correction from a missing or already-deleted schedule.
Shared recovery
Check HTTP status, parseable JSON, structured errors and the Boolean acknowledgement. If the response is unusable, keep the deletion outcome uncertain and ask authorized support to inspect saved configuration before another change. Keep credentials and raw failures out of logs.
| HTTP status | API code/response shape | Cause | Next action |
|---|---|---|---|
| 404 | resource_not_exists | Publication context could not be resolved | Check its public key and integration context with the administrator |
| 401 | auth_failed, token_expired or token_compromised | Existing caller/session is absent or unusable | Use the existing authorized sign-in/session process |
| 401 | auth_access_fail | Caller is inactive or publication access is locked/suspended | Ask the administrator to review access |
| 401 or 403 | access | Caller does not meet this operation's access requirements | Confirm admin/partner/root eligibility; permissions for other operations do not grant this deletion |
| 409 | initialize_failed | Request context initialization failed | Confirm publication/session context and provide the request reference if supplied |
| Other status or unusable response | No usable result | The deletion request failed or its response could not be interpreted | Show unavailable and seek help without exposing credentials or raw response content |