GitLab API

GitlabTool

Actions1095

Projects → putApiV4ProjectsIdCustomAttributesKey

AI-generated

Summary

Update a specific custom attribute for a GitLab project by its project ID and attribute key.

Inputs

  • id (required) — The unique identifier of the GitLab project to update.
  • key (required) — The key of the custom attribute to update.
  • putApiV4ProjectsIdCustomAttributesKey (required) — The request body containing the new value for the custom attribute.
  • baseUrl — The GitLab API base URL, defaults to https://gitlab.com if not specified.
  • skipAuthentication — Whether to skip authentication; defaults to false.

Output shape

a JSON object representing the updated custom attribute of the project

Returns the updated custom attribute object according to the GitLab API. Authentication is required unless explicitly skipped. Path parameters 'id' and 'key', as well as a properly structured request body, must be provided.

Examples

Example 1: Update a custom attribute 'environment' for project with ID 123

Set 'id' to '123', 'key' to 'environment', and provide the new value in the request body parameter.

Links

Discussion