PATCH
/
interactions
/
{id}
/
facts
/
{factId}
curl --request PATCH \
  --url https://api.{environment}.corti.app/v2/interactions/{id}/facts/{factId} \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>",
  "group": "other",
  "source": "core",
  "isDiscarded": true
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "text": "<string>",
  "group": "other",
  "groupId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source": "core",
  "isDiscarded": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "createdAtTzOffset": "+00:00",
  "updatedAt": "2023-11-07T05:31:56Z",
  "updatedAtTzOffset": "+00:00"
}

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 unique identifier of the interaction to which the fact belongs.

factId
string
required

The unique identifier of the fact to update.

Body

application/json
text
string
required

The updated text of the fact.

source
enum<string>
required

The updated origin of the fact.

Available options:
core,
system,
user
group
string

The updated group key for the fact.

Example:

"other"

isDiscarded
boolean

Indicates whether the fact should be marked as discarded.

Response

200
application/json
Returns the updated fact, including updated fields.
id
string

The unique identifier of the fact.

text
string

The updated text content of the fact.

group
string

The updated group key to which the fact belongs.

Example:

"other"

groupId
string

The unique identifier of the associated group.

source
enum<string>

The updated origin of the fact.

Available options:
core,
system,
user
isDiscarded
boolean

Indicates whether the fact is marked as discarded.

createdAt
string

The original timestamp when the fact was created.

createdAtTzOffset
string

The timezone offset for the creation timestamp.

Example:

"+00:00"

updatedAt
string

The timestamp when the fact was last updated.

updatedAtTzOffset
string

The timezone offset for the last update timestamp.

Example:

"+00:00"