Create an environment with a specified ID

Creates a new environment with the specified ID, or clones from a source environment via X-Contentful-Source-Environment. When updating an existing environment, include the current version in X-Contentful-Version.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

space_idstringRequired
ID of the space in the form of a string
environment_idstringRequired
ID of the environment in form of a string

Headers

X-Contentful-Source-EnvironmentstringOptional
Environment ID for the desired source environment
X-Contentful-VersionstringOptional
Version of the environment to update

Request

This endpoint expects a map from strings to any.

Response headers

Content-Typestring

Content-Type

Response

Created - Resource created successfully