GitLab API

GitlabTool

Actions1095

Projects → postApiV4ProjectsIdCreateCiConfig

AI-generated

Summary

Send a POST request to the GitLab API endpoint /api/v4/projects/{id}/create_ci_config to create a CI configuration for the specified project.

Inputs

  • id (required) — The ID of the GitLab project for which to create the CI configuration.
  • skipAuthentication — Optional boolean to skip using stored authentication credentials.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com.
  • method — HTTP method for the request; defaults to POST and must be POST for this operation.

Output shape

a single record representing the API response from creating the CI configuration for the specified project

The operation sends a POST request to the path /api/v4/projects/{id}/create_ci_config with the project ID as a path parameter. Authentication is required unless the 'Skip Authentication' option is set. The output contains the response body as returned by the GitLab API. No pagination applies.

Examples

Example 1: Create CI configuration for project with ID 1234

Set Path Parameters: id=1234; Method defaults to POST; use default authentication credentials; baseUrl defaults to https://gitlab.com.

Links

Discussion