Skip to content

Create a site

POST
/content/management/v1/experience/sites
curl --request POST \
--url https://api.ebitex.io/content/management/v1/experience/sites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example" }'

Creates a site: a new root node, with only a name. A site has no slug, and its path is always /. It is added at the end of the site order.

The new site has no payload and no hostnames. Add pages under it with POST /experience/nodes, set its own page with PUT /experience/nodes/{id}/payload, and publish it before delivery can serve it.

Key: a management key with content.management.authoring.

Media typeapplication/json
object
name
required
string
Examplegenerated
{
"name": "example"
}

Created. The new site as a node, in the shape GET /experience/nodes/{id} returns.

validation_failed: name is missing or blank.

missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired.

payment_required: the organization’s subscription needs attention.

quota_exceeded: the organization has reached its plan’s limit on Experience nodes.

scope_denied: the key lacks this route’s scope. tier_required: the Content Management API needs the Pro plan or above. ip_denied: the caller’s address is outside the key’s allowed ranges. app_not_available: Content is not enabled for the organization.

duplicate_site_name: a site with this name already exists in the environment.

Rate limit or quota exceeded; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.