GitLab API

GitlabTool

Actions1095

Projects → putApiV4ProjectsId

AI-generated

Summary

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

Inputs

  • id (required) — The ID or URL-encoded path string identifying the project to update.
  • putApiV4ProjectsId (required) — The request body containing the fields and values to update for the specified project.
  • skipAuthentication — Optional boolean to skip authentication; defaults to false.
  • baseUrl — The base URL for the GitLab API endpoint; defaults to 'https://gitlab.com'.

Output shape

a single record representing the updated project details as returned by the GitLab API.

The output corresponds to the response from the GitLab API PUT /api/v4/projects/{id} endpoint, reflecting the project's updated state. Authentication is required unless explicitly skipped, and the 'id' path parameter is mandatory.

Examples

Example 1: Update a project's name and description by specifying the project ID and providing the new values in the request body.

Set 'id' to the project's ID or path and provide a JSON request body with the fields to update, such as 'name' and 'description'.

Links

Discussion