Manage Tags
Upsert
Insert or update a tag definition.
Request Body
| Field | Type | Description |
|---|---|---|
tag_data | Tag | Tag data structure containing tag definition. |
Response
- 200: Tag upserted successfully
- Returns:
{ "tag_name": str, "tag": Tag, "available_values_added": List[str] }
- Returns:
- 400: Bad Request (e.g., invalid tag data)
- 500: Internal Server Error
Example
{
"tag_data": {
"name": "category",
"description": "Document category classification",
"type": "select",
"available_values": ["invoice", "receipt", "contract"]
}
}
POST
Python
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Python
