Admin providers
Assign a provider to an organization
POST
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.
bearerheader
AuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
organization_id*stringThe organization to assign this provider to.
Length
1 <= lengthdefault?booleanMake it the organization's default provider. Defaults to true when the organization has none.
The assignment.
application/json- response
organization_id?stringThe assigned organization.
organization_name?stringIts name.
provider_id?stringThe row the organization's domains bind to: its own row on a shared provider, or the provider itself.
default?booleanWhether it's the organization's default provider.
domain_count?integerDomains bound to it.
status?stringsetting_up means a domain was added and the setup at the provider isn't finished yet.
Value in
"ready""setting_up""paused"created_at?stringISO 8601 timestamp.
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"}