# createProjectLabel

```graphql
mutation CreateProjectLabel($input: CreateProjectLabelInput!) {
  createProjectLabel(input: $input) {
    id
    projectId
    namespace
    key
    value
    color
    createdAt
    updatedAt
  }
}
```

Create project label. Requires project.settings.manage.

## Arguments

| Name                     | Type                     | Required | Description           |
| ------------------------ | ------------------------ | -------- | --------------------- |
| `input`                  | CreateProjectLabelInput! | Yes      |                       |
| `input.projectReference` | String!                  | Yes      | Project UUID or slug. |
| `input.label`            | ProjectLabelFields!      | Yes      |                       |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "label": {
      "key": "string"
    }
  }
}
```

## Responses

| Status | Description                                   |
| ------ | --------------------------------------------- |
| 200    | The ProjectLabel! in data.createProjectLabel. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CreateProjectLabel($input: CreateProjectLabelInput!) {\n  createProjectLabel(input: $input) {\n    id\n    projectId\n    namespace\n    key\n    value\n    color\n    createdAt\n    updatedAt\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "label": {
        "key": "string"
      }
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "createProjectLabel": {
      "id": "string",
      "projectId": "string",
      "namespace": "string",
      "key": "string",
      "value": "string",
      "color": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  }
}
```
