Skip to main content
PATCH
/
tags
/
import requests

response = requests.patch(
    "https://api.atomscale.ai/tags/",
    headers={
        "X-API-KEY": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json=[
        {
            "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "name": "critical",
            "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666"
        }
    ]
)
tags = response.json()
[
  {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "critical",
    "organization_id": "org_abc123",
    "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666",
    "category_name": "Review Status",
    "usage_count": 12
  }
]
Updates one or more tags. You pass a list of tag update objects, so you can update multiple tags in a single request. Each object carries the tag id plus the fields you want to change. The request body is an array of tag update objects.
id
string
required
UUID of the tag to update
name
string
Updated tag name
tag_category_id
string
Updated category ID for the tag

Response

Returns an array of the updated tags.
id
string
Tag UUID
name
string
Tag name
organization_id
string
ID of the organization the tag belongs to
tag_category_id
string
ID of the category this tag belongs to, or null if uncategorized
category_name
string
Name of the tag’s category, or null if uncategorized
usage_count
integer
Number of data items this tag is applied to
import requests

response = requests.patch(
    "https://api.atomscale.ai/tags/",
    headers={
        "X-API-KEY": "YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json=[
        {
            "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
            "name": "critical",
            "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666"
        }
    ]
)
tags = response.json()
[
  {
    "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
    "name": "critical",
    "organization_id": "org_abc123",
    "tag_category_id": "b1a2c3d4-1111-2222-3333-444455556666",
    "category_name": "Review Status",
    "usage_count": 12
  }
]