GitLab API icon

GitLab API

Gitlab

Actions1062

Environments → postApiV4ProjectsIdEnvironments

AI-generated

Summary

Creates a new environment in a GitLab project via POST /api/v4/projects/{id}/environments.

Inputs

  • id (required) — The ID or URL-encoded path of the project owned by the authenticated user
  • requestBody (required) — Request body conforming to the postApiV4ProjectsIdEnvironments schema

Output shape

The response object from GitLab for the created environment.

On success, the operation returns the GitLab API response containing the created environment object.

Examples

Example 1: You need to create a new environment in a GitLab project.

No example configuration is provided. The operation uses the OpenAPI schema to generate the required body fields.

Links

Discussion