Update project label

updateProjectLabel(input: UpdateProjectLabelInput!): ProjectLabel!

Requires project.settings.manage.

Arguments

ArgumentTypeRequired
inputUpdateProjectLabelInput!Yes

Input fields

input

UpdateProjectLabelInput

FieldTypeRequiredDescription
projectReferenceString!YesProject UUID or slug.
labelIdID!Yes
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 UpdateProjectLabel($input: UpdateProjectLabelInput!) {
  updateProjectLabel(input: $input) {
    id
    projectId
    createdAt
    updatedAt
    color
  }
}
json
{
  "input": {
    "projectReference": "00000000-0000-4000-8000-000000000001",
    "labelId": "00000000-0000-4000-8000-000000000001",
    "label": {
      "key": "example"
    }
  }
}