Skip to Content
Pouch
Admin organizations

Set an organization's default provider

PATCH
/v1/admin/organizations/{id}

Auth: Admin key.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Request Body

application/json
  1. body
provider_id?string

The assignment new domains bind to. Must be one of the organization's assignments.

Length1 <= length
address_limit?|

Active addresses the organization may hold. null goes back to the install's default.

address_daily_message_limit?|

Messages one address may receive per UTC day. Mail past it is dropped and counted. null goes back to the install's default.

Response Body

The updated organization.

application/json
  1. response
id?string

Opaque id, prefixed org_.

name?string

Display name.

slug?string

URL slug.

provider_id?|

The assignment new domains bind to, or null when nothing is assigned.

managed_provider_id?|

The provider an admin manages it on: the shared provider for a shared row, else the row itself.

assignment_count?integer

Providers the organization's domains can bind to.

domain_count?integer

Domains in the organization.

suspension?|

source, reason and suspended_at while suspended, otherwise null.

address_limit?integer

Active addresses the organization may hold: its override, else the install's default.

address_daily_message_limit?integer

Messages one address may receive per UTC day: its override, else the install's default.

address_limit_override?|

The organization's own address limit. Null follows the install's default.

address_daily_message_limit_override?|

The organization's own daily limit. Null follows the install's default.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

Example Request
curl -X PATCH 'https://pouch.example.com/v1/admin/organizations/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "slug": "string",  "provider_id": "string",  "managed_provider_id": "string",  "assignment_count": 0,  "domain_count": 0,  "suspension": {},  "address_limit": 0,  "address_daily_message_limit": 0,  "address_limit_override": 0,  "address_daily_message_limit_override": 0,  "created_at": "string",  "updated_at": "string"}