Close an Organization

Access: Requires DISTRIBUTOR actor type

Closes an Organization by disabling access, billing, and marking as closed. This is a permanent state change (unlike suspend which is temporary).

Updates:

  • enabled: false
  • billing.enabled: false
  • closed: true
  • lastUpdated: new Date()

Activity Log:

  • Creates activity log entry with reason

Note: Cannot close an already closed organization (returns 409).

Requires JWT authentication and 'partners:organizations:close' scope.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^[0-9a-fA-F]{24}$

MongoDB ObjectId of the organization

Body Params
string
required
length ≤ 500

Reason for closing the organization

Headers
uuid

Optional client-supplied unique ID for one request. The server generates a UUID v4 if omitted and always echoes the value in the response.

uuid

Optional ID that flows across service boundaries for distributed tracing. The server generates a UUID v4 if omitted and always echoes the value in the response.

string
length between 1 and 255
^[a-zA-Z0-9]+$

Optional client-supplied key that makes retries safe for POST/PATCH/PUT. Scoped per actor; cached for 24 hours. Replays return the cached response with X-Idempotency-Replayed: true. Same key with a different body returns 409. In-flight duplicates return 429 with Retry-After. See the Idempotency section in the API overview.

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json