Project.add_tag¶
Attach an existing tag to this project.
POST /api/tags/projects/{project_id}/add/{tag_id}. Takes a tag id,
not a name — symmetric with remove_tag and with
Dataset.add_tag.
Signature¶
add_tag(tag_id: str) -> dict[str, Any]
Parameters¶
| Name | Type | Required | Default |
|---|---|---|---|
tag_id |
str |
yes | - |
HTTP parameters¶
| Name | In | Type | Required | Default |
|---|---|---|---|---|
project_id |
path |
string |
yes | - |
tag_id |
path |
string |
yes | - |
Fields¶
| Field |
|---|
tag_id |
Return shape¶
HTTP 201 — Created
Schema: TagSchema
| Field | Type | Required |
|---|---|---|
color |
string |
yes |
dataset_count |
integer |
no |
id |
string |
yes |
name |
string |
yes |
notebook_count |
integer |
no |
project_count |
integer |
no |
Permission¶
Required permission: Team membership required
HTTP¶
POST /api/tags/projects/{id}/add/{tag_id} (addTagToProject)
Usage¶
project.add_tag(tag_id)