Skip to Content
Pouch
Admin providers

Assign a provider to an organization

POST
/v1/admin/providers/{id}/organizations

Auth: Admin key.

Makes no provider call: the organization's space at the provider is created when it adds its first domain. Assigning again returns the same assignment.

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
organization_id*string

The organization to assign this provider to.

Length1 <= length
default?boolean

Make it the organization's default provider. Defaults to true when the organization has none.

Response Body

The assignment.

application/json
  1. response
organization_id?string

The assigned organization.

organization_name?string

Its name.

provider_id?string

The row the organization's domains bind to: its own row on a shared provider, or the provider itself.

default?boolean

Whether it's the organization's default provider.

domain_count?integer

Domains bound to it.

status?string

setting_up means a domain was added and the setup at the provider isn't finished yet.

Value in"ready""setting_up""paused"
created_at?string

ISO 8601 timestamp.

Example Request
curl -X POST 'https://pouch.example.com/v1/admin/providers/string/organizations' \  -H 'Content-Type: application/json' \  -d '{  "organization_id": "string"}'
Example Response
{  "organization_id": "string",  "organization_name": "string",  "provider_id": "string",  "default": true,  "domain_count": 0,  "status": "ready",  "created_at": "string"}