PATCH
/
interactions
/
{id}
/
documents
/
{documentId}
curl --request PATCH \
  --url https://api.{environment}.corti.app/v2/interactions/{id}/documents/{documentId} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "sections": [
    {
      "key": "<string>",
      "name": "<string>",
      "text": "<string>",
      "sort": 123
    }
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "templateRef": "<string>",
  "isStream": true,
  "sections": [
    {
      "key": "<string>",
      "name": "<string>",
      "text": "<string>",
      "sort": 123
    }
  ]
}

Headers

Tenant-Name
string

Identifies a distinct entity within Corti's multi-tenant system. Ensures correct routing and authentication of the request.

Example:

"copiloteu"

Path Parameters

id
string
required

The interaction ID representing the context for the request.

documentId
string
required

The document ID representing the context for the request.

Body

application/json
name
string

An optional name for the document.

sections
object[]

Response

200
application/json
id
string

Unique ID of the generated document

name
string

Name of the generated document

templateRef
string

Reference for the used template

isStream
boolean
sections
object[]

Individual document sections