Create project label

createProjectLabel(input: CreateProjectLabelInput!): ProjectLabel!

Requires project.settings.manage.

Arguments

ArgumentTypeRequired
inputCreateProjectLabelInput!Yes

Input fields

input

CreateProjectLabelInput

FieldTypeRequiredDescription
projectReferenceString!YesProject UUID or slug.
labelProjectLabelFields!Yes

Response

Returns ProjectLabel!. Open the type for its fields and nested types.

FieldType
idID!
projectIdID!
namespaceString!
keyString!
valueString
colorString
createdAtString!
updatedAtString!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation CreateProjectLabel($input: CreateProjectLabelInput!) {
  createProjectLabel(input: $input) {
    id
    projectId
    createdAt
    updatedAt
    color
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "label": {
      "key": "example"
    }
  }
}