PATCH
/
interactions
/
{id}
/
facts
/
{factId}
cURL
curl --request PATCH \
  --url https://api.{environment}.corti.app/v2/interactions/{id}/facts/{factId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Tenant-Name: <tenant-name>' \
  --data '{
  "text": "<string>",
  "group": "other",
  "source": "core",
  "isDiscarded": true
}'
{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "text": "<string>",
  "group": "other",
  "groupId": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "source": "core",
  "isDiscarded": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Input your token

Headers

Tenant-Name
string
required

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

Example:

"copiloteu"

Path Parameters

id
string<uuid>
required

The unique identifier of the interaction. Must be a valid UUID.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

factId
string<uuid>
required

The unique identifier of the fact to update. Must be a valid UUID.

Example:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

Body

application/json

Response

200
application/json

Returns the updated fact, including updated fields.

The response is of type object.