Skip to main content
PATCH
/
v1
/
context-documents
/
{doc_uuid}
Patch Context Document
curl --request PATCH \
  --url https://api.example.com/v1/context-documents/{doc_uuid} \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "document_type": "<string>",
  "is_global": true,
  "description": "<string>",
  "content": "<string>",
  "tags": [
    "<string>"
  ],
  "targeting_rules": {}
}
'
{
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "title": "<string>",
    "document_type": "<string>",
    "is_global": true,
    "description": "<string>",
    "tags": [
      "<string>"
    ],
    "version": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "content": "<string>",
    "targeting_rules": {}
  },
  "meta": {}
}

Path Parameters

doc_uuid
string<uuid>
required

Body

application/json

Request body for PATCH /v1/context-documents/{uuid}.

title
string | null
document_type
string | null
is_global
boolean | null
description
string | null
content
string | null
tags
string[] | null
targeting_rules
Targeting Rules · object

Response

Successful Response

data
ContextDocumentResponse · object
required

Full response — includes content and targeting_rules.

meta
Meta · object