Codeberg icon

Codeberg

Interact with the Codeberg API

Label → Create

AI-generated

Summary

Create a new label in a specified Codeberg repository by providing the repository owner, name, label name, and color. Optionally include a description and specify if the label is exclusive within its group.

Inputs

  • Authentication — Choose authentication method: Access Token or OAuth2.
  • Repository Owner (required) — Owner of the repository.
  • Repository Name (required) — Name of the repository.
  • Name (required) — The name of the label to create.
  • Color (required) — Color of the label in hex format without the leading #.
  • Description — Description of the label.
  • Exclusive — Whether this label is exclusive with other labels in the same group.

Output shape

a single JSON object representing the created label

Returns the created label object as JSON. If creation fails, an error is thrown.

Links

Discussion