custom_attributes

Creates or updates a custom attribute for a project

Creates or updates a custom attribute for a specified project. If the attribute already exists, it is updated, otherwise a new attribute is created.

put/api/v4/projects/{id}/custom_attributes/{key}

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

keystring required

The key of the custom attribute

idinteger required

Request body

valuestring required

The value of the custom attribute

Response

Creates or updates a custom attribute for a project

keystring required
valuestring required

Example response

{
  "key": "foo",
  "value": "bar"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.