Delete an organization

Delete an organization, along with its members and roles. This cannot be undone. Only an owner, working inside the organization, can do this. Objects, templates, files and webhooks belonging to it are not removed by this call, so tidy those up first if you want them gone. Requires the `organizations.delete` permission.

DELETE
/organizations/{organizationId}
AuthorizationBearer <token>

The access token returned after a successful sign-in, sent as Authorization: Bearer <access_token>.

It identifies the person and the organization they are working in, and it lasts about fifteen minutes. When it runs out, use their refresh token at POST /auth/refresh-token instead of asking them to sign in again.

In: header

Path Parameters

organizationId*string

Identifier of the organization. Each endpoint states whether it must be the caller's active organization or may be used without authentication.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.dual.network/organizations/665f1c2d4b1a2c3d4e5f6aa0"
{}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}

{
  "code": 16,
  "message": "no auth provided"
}

{
  "code": 5,
  "message": "object not found"
}
{
  "code": 13,
  "message": "internal error"
}