Git Providers

Render a redacted effective Compose preview for a connected repository.

Changed on
post/repositories/{repository_id}/compose-file/preview

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

repository_idinteger required

Repository ID

Request body

branchstring nullable
composeOverridestring nullable
environmentIdinteger nullable

Environment whose variables resolve ${VAR}; defaults to the project's production environment. Requires project_id.

excludedServicesstring[]
pathstring required
projectIdinteger nullable

The project this Compose file deploys. When set, the preview runs the deploy job's check with that project's saved security policy and the environment's variables (values are never returned), so it fails with the same error class a deployment would.

Response

Effective Compose preview rendered

disabledServicesstring[] required
effectiveComposestring required

Effective user-controlled Compose YAML with sensitive values redacted.

enabledServicesstring[] required
overrideRedundancy'identical' | 'superset' nullable

How a saved project override relates to the repository Compose file.

overrideWarningstring nullable

What to do about override_redundancy.

pathstring required
redactedValuesinteger required
repositoryIdinteger required

Changes

    • breaking

      removed the required property allOf[#/components/schemas/ProblemDetails]/extensions from the response with the status

    • info

      added the new optional request property environmentId

    • info

      added the new optional request property projectId

    5 more changes in this revision