Labels
get_label(label_id)
async
create_label(label)
async
delete_label(label_id)
async
Delete a label.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
label_id |
int
|
The ID of the label to delete. |
required |
get_labels(query=None, sort=None, page=1, page_size=10, name=None, scope=None, project_id=None, limit=None)
async
Get a list of labels.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
Optional[str]
|
The query string to filter by. |
None
|
sort |
Optional[str]
|
The sort order of the results. |
None
|
page |
int
|
The page of results to return. |
1
|
page_size |
int
|
The number of results to return per page. |
10
|
name |
Optional[str]
|
The name of the label to filter by. |
None
|
scope |
Optional[str]
|
The scope of the label to filter by.
Valid values are |
None
|
project_id |
Optional[int]
|
The ID of the project to filter by.
Required when scope is |
None
|
limit |
Optional[int]
|
The maximum number of results to return. |
None
|
Returns:
Type | Description |
---|---|
List[Label]
|
The list of labels. |