admin_console
subscription

Update Subscription Admin

Inline-edit a subscription's status/ends_at from the admin tool.

Admin role only — VIEWERs are rejected with 403 by require_admin. Emits a structured Axiom log line on success (D6 audit policy).

patch/v1/admin_console/subscription/{subscription_id}

Request

  • Base URL
    https://api.linktodm.com (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

subscription_idinteger required

Request body

status'on_trial' | 'active' | 'paused' | 'past_due' | 'unpaid' | 'cancelled' | 'expired' | 'created'
ends_atstring date-time nullable
product_name'Pro' | 'Pro+'
expected_updated_atstring date-time nullable

Response

Successful Response

idinteger required
status'on_trial' | 'active' | 'paused' | 'past_due' | 'unpaid' | 'cancelled' | 'expired' | 'created' required
ends_atstring date-time nullable
product_name'Pro' | 'Pro+' required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.