# Update a label

Update a label using its unique ID. You can update its name and color. All PUT requests behave like PATCH requests — only the specified properties are updated. To obtain a valid id, first call GET /v1/REST/labels to list your labels.

Endpoint: PUT /v1/REST/labels/{id}
Version: 1.0.0
Security: basicAuth, bearerAuth

## Path parameters:

  - `id` (integer, required)
    The ID of the label.
    Example: 102

## Request fields (application/json):

  - `Name` (string)
    Must be unique.

  - `Color` (string)
    Should be a valid hexadecimal color (e.g.

## Response 200 fields (application/json):

  - `Count` (integer)
    Number of items in this response

  - `Data` (array)

  - `Data.ID` (integer)
    The ID of the label.

  - `Data.Name` (string)
    The name of the label.

  - `Data.Color` (string)
    The hexadecimal color of the label (e.g.

  - `Data.UsedFor` (string)
    Indicates if the label is used for a template or an image. Values: resource, image.

  - `Total` (integer)
    Total number of items available


## Response 400 fields

## Response 401 fields

## Response 403 fields

## Response 404 fields

## Response 429 fields

## Response 500 fields
