{"uid":"cap_5ZvyvC8r4KMsu9R3oC85L","slug":"zensched-policy-archive-1c782e60","name":"ZenSched Policy Archive","description":"ZenSched `policy_archive` — Archive a policy (blocked while any active brand references it; policy 0 cannot be archived). Pay-per-call $0.01 USDC; the paying wallet owns the org (auto-provisioned on first call). Catalog: https://mcp.zensched.com/x402/tools","url":"https://mcp.zensched.com/x402/tools/policy_archive?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","title":"policy_archiveArguments","required":["policy_id"],"properties":{"policy_id":{"type":"integer","title":"Policy Id"},"idempotency_key":{"type":"string","title":"Idempotency Key","default":""}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4Lv_Vo-nY3a92fPApbVH3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Archives (soft-deletes) a scheduling policy by ID, blocked if any active brand still references it or if it is the reserved policy 0.","exampleAgentPrompt":"Archive scheduling policy number 42 in ZenSched — it's no longer in use and I want to clean it up.","exampleUseCases":[{"title":"Retiring an obsolete shift policy","prompt":"We've stopped using the old overnight shift policy with ID 17 — can you archive it in ZenSched so it doesn't clutter our active policy list?"},{"title":"Post-client offboarding policy cleanup","prompt":"We just offboarded a client and their brand no longer references any policies. Go ahead and archive policy 88 in ZenSched to wrap up the cleanup."},{"title":"Idempotent policy archival in automation","prompt":"Archive ZenSched policy 5 using idempotency key 'cleanup-2024-q2' so the workflow doesn't double-archive it if it retries."}],"resultDescription":"Returns a confirmation that the policy has been archived, or an error indicating why it cannot be archived — e.g. the policy is still actively referenced by a brand, or it is the protected policy 0.","failureModes":["Policy is still referenced by one or more active brands — returns a conflict/blocked error","Attempting to archive policy ID 0 (reserved, cannot be archived) — returns a validation error","Policy ID not found — returns a 404 or not-found error","Insufficient authorization — wallet does not own the org — returns an auth error","Payment failure — $0.01 USDC charge not processed — returns a 402 error"],"whenToPreferThis":"Use this endpoint when you need to soft-delete or retire a ZenSched scheduling policy that is no longer needed and has been detached from all active brand references. Prefer this over manual UI cleanup in automated offboarding or policy lifecycle workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:36:33.536Z","isFirstParty":false,"canonicalSlug":"zensched-policy-archive-1c782e60"}