# Create a label

Create a label to categorize resources (templates) or images for better organization. Each label has a unique name, a color represented as a hexadecimal code, and a type indicating whether it is used for images or templates.

Endpoint: POST /v1/REST/labels
Version: 1.0.0
Security: basicAuth, bearerAuth

## Request fields (application/json):

  - `Name` (string, required)
    Required. Must be unique.

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

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

## Response 201 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 429 fields

## Response 500 fields
