api reference

Update Knowledge Document Tag

PATCH
/v1/knowledge/documents/{document_id}/tags

Path Parameters

document_id*Document Id
Formatuuid

Header Parameters

authorization?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Set or clear one type of tag on a document.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/v1/knowledge/documents/497f6eca-6276-4993-bfeb-53cbbbba6f08/tags" \  -H "Content-Type: application/json" \  -d '{    "type": "brand",    "value": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "content_type": "string",  "size_bytes": 0,  "status": "pending",  "error": "string",  "piece_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "tags": [    {      "type": "string",      "value": "string"    }  ]}