Create an organization
How to create an organization via API
To create a new organization, send a POST request to the /api/organizations endpoint, passing the resource arguments in the request body.
Request
POST https://provisioning.commercelayer.io/api/organizations
Arguments
type
string
Required
attributes.name
string
Required
attributes.support_phone
string
Optional
attributes.support_email
string
Optional
attributes.logo_url
string
Optional
attributes.favicon_url
string
Optional
attributes.primary_color
string
Optional
attributes.contrast_color
string
Optional
attributes.gtm_id
string
Optional
attributes.gtm_id_test
string
Optional
attributes.region
string
Optional
attributes.config
object
Optional
attributes.reference
string
Optional
attributes.reference_origin
string
Optional
attributes.metadata
object
Optional
Example
The following request creates a new organization:
On success, the API responds with a 201 Created status code, returning the created resource object:
Last updated