Environments

Fork Environment Variant

Changed on

Fork an existing environment variant into a new variant.

The new variant starts from the source variant's head revision (or a pinned revision if environment_revision_ref is provided). Provide slug and name in the fork body to identify the new variant.

post/environments/variants/fork

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/environments/variants/fork
  • Auth
    API key in header Authorization

Request body

Response

Successful Response

countinteger

Changes