Skip to main content

Update a Document

PATCH 

/documents/:id

Updates a Datasphere Document by ID

Request

Path Parameters

    id uuidrequired

    Unique ID of a Document.

Body

required

    tags string[]

    Document tags.

    Example: ["sports","football","game"]

Responses

The request has succeeded.

Schema

    id uuidrequired

    Unique ID of a Document.

    filename stringrequired

    Name of the Document.

    Example: player_list.pdf
    status DocumentStatus (string)required

    The current Status of the Document.

    Possible values: [submitted, in_progress, completed, failed]

    tags string[]required

    Document tags.

    Example: ["sports","football","game"]
    chunking_strategy ChunkingStrategy (string)required

    Strategy to use when chunking the document.

    Possible values: [sentence, paragraph, page, sliding]

    max_sentences_per_chunk stringrequired

    Max Sentences per Chunk (only used for chunking type 'sentence')

    Example: 80
    split_newlines booleanrequired

    Split on Newlines (only used for chunking type 'sentence')

    Example: true
    overlap_size stringrequired

    Overlap Size (only used for chunking type 'sliding')

    Example: 10
    chunk_size stringrequired

    Chunk Size (only used for chunking type 'sliding')

    Example: 50
    number_of_chunks integerrequired

    Number of Chunks in the Document.

    Example: 2345
    created_at date-timerequired

    Document Creation Date.

    Example: 2024-05-06T12:20-12Z
    updated_at date-timerequired

    Document Update Date.

    Example: 2024-05-06T12:20-12Z