Skip to main content
POST
/
tags
/
upsert_bulk
Python
import os
from unstructured import UnstructuredClient

client = UnstructuredClient(
    username=os.environ.get("UNSTRUCTURED_USERNAME"),  # This is the default and can be omitted
    password=os.environ.get("UNSTRUCTURED_PASSWORD"),  # This is the default and can be omitted
)
response = client.tags.upsert_bulk(
    tag_data=[{
        "name": "name"
    }],
)
print(response.available_values_added_by_tag)
{
  "tag_names": [
    "<string>"
  ],
  "available_values_added_by_tag": {},
  "failed_tags": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.deasylabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
tag_data
Tag · object[]
required

Response

Successful Response

tag_names
string[]
required
available_values_added_by_tag
Available Values Added By Tag · object
required
failed_tags
string[]
required