younifyd
Menu

Create Space

Create a space

POST/spaces

Use it in a workflow

  1. Add a step and choose the Contentful connector.
  2. Pick the Create Space action (under Contentful Content Management API).
  3. Fill in the fields below, then reference the result from later steps as {{createSpace.response.data}}.

Request

Headers

Content-Typestringrequired

Contentful Management API version header

Default "application/vnd.contentful.management.v1+json"

Request body

Enter the body as JSON in the step's Body field.

defaultLocalestring

Default locale for the space

Default "en-US"

namestringrequired

Name of the space to create

json
{
  "name": "string",
  "defaultLocale": "en-US"
}

Response

Returns 201 with an object. Read it in later steps with {{createSpace.response.data.<field>}}.

defaultLocalestring

Default locale of the space

namestring

Name of the space

sysobject
json
{
  "name": "string",
  "sys": {},
  "defaultLocale": "string"
}

Need more? See the Contentful guide for connection setup and behaviour shared by every action.

Was this page helpful?