Skip to content




Table of Content

graphql mutation

create label

mutation {
  labelCreate(
    input: {
      #projectPath: "gid://gitlab/Project/180"
      groupPath: "gid://gitlab/Group/212"
      title: "want-to-x"
      description: "wtb, wtg, wtr, wtw, and so on"
      color: "#ff6600"
    }
  ) {
    clientMutationId
  }
}
  • projectPath or groupPath
  • title
  • description
  • color

example

mutation {
  labelCreate(input: )
}

list of group ID

query {
  groups(first: 30) {
    nodes {
      id
      name
      fullPath
      projectsCount
      labels(first: 30) {
        count
      }
    }
  }
}