Plans
POST/v1/plans/{plan_id}/cancel

Cancel plan

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/plans/{plan_id}/cancel" \  -H "Cookie: <console session cookie>"

Cancels a pending or active plan: scheduled pulls are skipped, the remaining reserved budget is released and the on-chain permission is revoked. Requires budget:edit.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/plans/{plan_id}/cancelBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • plan_idstringrequired

    Plan id (pln_...).

Requires permissionbudget:edit
Held by owner, admin, finance, operator. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Path Parameters

plan_id*Plan Id

Plan id (pln_...).

Response Body

Success.

application/json
  1. response
plan*
payments*array<>
released_base_units?string|null
revoke_tx?string|null
[key: string]?any