Skip to Content
Pouch
Organization

Update the organization

PATCH
/v1/organization

Auth: Bearer key with no domain scope.

Lowering body_retention_days shortens how long every body stays readable, existing ones included. The slug is read-only here.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Request Body

application/json
  1. body
name?string

Display name for the organization.

Length1 <= length <= 200
body_retention_days?integer

Days a message body stays readable before the worker shreds its key. 7 up to body_retention_max_days, the install's ceiling: 365 unless an admin changed it.

Range7 <= value <= 730

Response Body

The updated organization.

application/json
  1. response
id?string

Opaque id, prefixed org_.

name?string

Display name.

slug?string

URL slug. Read-only here; it addresses dashboard screens.

body_retention_days?integer

Days a message body stays readable before the worker shreds its key.

body_retention_max_days?integer

The install's ceiling on body_retention_days. Bodies stay readable for the smaller of the two.

address_limit?integer

Active addresses the organization may hold. Set by an admin.

address_daily_message_limit?integer

Messages one address may receive per UTC day. Set by an admin.

suspended?boolean

True while the organization can't send. An admin releases it.

created_at?string

ISO 8601 timestamp.

updated_at?string

ISO 8601 timestamp.

address_counts?

With include=address_counts. The organization's addresses by status, counted on read. active is what address_limit caps.

Example Request
curl -X PATCH 'https://pouch.example.com/v1/organization' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "name": "string",  "slug": "string",  "body_retention_days": 0,  "body_retention_max_days": 0,  "address_limit": 0,  "address_daily_message_limit": 0,  "suspended": true,  "created_at": "string",  "updated_at": "string",  "address_counts": {    "active": 0,    "expired": 0,    "revoked": 0  }}