POST
/
onyx-api
/
ingestion
Upsert Ingestion Doc
curl --request POST \
  --url https://cloud.onyx.app/api/onyx-api/ingestion \
  --header 'Content-Type: application/json' \
  --data '{
  "document": {
    "id": "<string>",
    "sections": [
      {
        "link": "<string>",
        "text": "<string>",
        "image_file_id": "<string>"
      }
    ],
    "source": "ingestion_api",
    "semantic_identifier": "<string>",
    "metadata": {},
    "doc_updated_at": "2023-11-07T05:31:56Z",
    "chunk_count": 123,
    "primary_owners": [
      {
        "display_name": "<string>",
        "first_name": "<string>",
        "middle_initial": "<string>",
        "last_name": "<string>",
        "email": "<string>"
      }
    ],
    "secondary_owners": [
      {
        "display_name": "<string>",
        "first_name": "<string>",
        "middle_initial": "<string>",
        "last_name": "<string>",
        "email": "<string>"
      }
    ],
    "title": "<string>",
    "from_ingestion_api": false,
    "additional_info": "<any>",
    "external_access": {
      "external_user_emails": [
        "<string>"
      ],
      "external_user_group_ids": [
        "<string>"
      ],
      "is_public": true
    },
    "doc_metadata": {}
  },
  "cc_pair_id": 123
}'
{
  "document_id": "<string>",
  "already_existed": true
}

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.