Tag API
Source code in upriver/sdk/tag/tag_api.py
8 9 | |
get_all_tags
get_all_tags()
Gets all tags.
| RETURNS | DESCRIPTION |
|---|---|
List[Tag]
|
A list of all tags. |
| RAISES | DESCRIPTION |
|---|---|
requests.HTTPError
|
If the request fails. |
Source code in upriver/sdk/tag/tag_api.py
11 12 13 14 15 16 17 18 | |
get_tag
get_tag(tag_name)
Gets a tag by name.
| PARAMETER | DESCRIPTION |
|---|---|
tag_name
|
The name of the tag to get.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Tag
|
The tag. |
| RAISES | DESCRIPTION |
|---|---|
requests.HTTPError
|
If the request fails. |
Source code in upriver/sdk/tag/tag_api.py
20 21 22 23 24 25 26 27 28 | |
create_tag
create_tag(tag)
Creates a tag.
| PARAMETER | DESCRIPTION |
|---|---|
tag
|
The tag to create.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
requests.HTTPError
|
If the request fails. |
Source code in upriver/sdk/tag/tag_api.py
30 31 32 33 34 35 36 | |
update_tag
update_tag(tag_name, updated_tag)
Updates a tag.
| PARAMETER | DESCRIPTION |
|---|---|
tag_name
|
The name of the tag to update.
TYPE:
|
updated_tag
|
The updated tag.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
requests.HTTPError
|
If the request fails. |
Source code in upriver/sdk/tag/tag_api.py
38 39 40 41 42 43 44 45 | |
delete_tag
delete_tag(tag_name)
Deletes a tag. Note: this action cannot be reversed!
| PARAMETER | DESCRIPTION |
|---|---|
tag_name
|
The name of the tag to delete.
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
requests.HTTPError
|
If the request fails. |
Source code in upriver/sdk/tag/tag_api.py
47 48 49 50 51 52 53 | |