GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → putApiV4ProjectsId

AI-generated

Summary

Update an existing GitLab project by specifying its ID or URL-encoded path and providing the desired project data in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the project to update, provided in the path parameters.
  • putApiV4ProjectsId (required) — The request body containing the fields and values to update the project with.
  • skipAuthentication — Boolean flag to skip authentication; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a JSON object representing the updated project data returned by the GitLab API

The operation uses HTTP PUT on the endpoint /api/v4/projects/{id} with authentication unless skipped. The returned JSON includes the updated project details as per GitLab's API specification.

Examples

Example 1: Update project visibility or description

Set the 'id' path parameter to the project ID and provide fields like 'visibility' or 'description' in the request body schema to change project properties.

Links

Discussion