API

Label

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{org_slug}/labels list Organization change labels

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

labels, err := client.Label(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(labels)

Lua

Construct client as shown in the Lua setup, then call the operations:

local labels, err = client:Label():list({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$labels = $client->Label()->list(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

labels = client.Label().list({"organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

labels = client.Label.list({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const labels = await client.Label().list({ organization_id: "example" })

Fields

Field Type Required Description
changes_count integer Yes Changes Count
id string Yes Id
name string Yes Display name
slug string Yes Normalized identity used for filtering and lookup.

list

GET /api/v1/organizations/{org_slug}/labels

Operation ID: api_v1_labels.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
q query string No
include_unused query boolean No Include labels no change currently carries.
limit query integer No

Responses

200: Organization change labels

application/json

Property Type Required Description
labels array of object Yes
labels[].changes_count integer Yes
labels[].id string Yes
labels[].name string Yes Display name
labels[].slug string Yes Normalized identity used for filtering and lookup.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway