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

    tagsstring[]

    Document tags.

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

Responses

The request has succeeded.

Schema

    iduuidrequired

    Unique ID of a Document.

    filenamestringrequired

    Name of the Document.

    Example: player_list.pdf
    statusDocumentStatus (string)required

    The current Status of the Document.

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

    tagsstring[]required

    Document tags.

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

    Strategy to use when chunking the document.

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

    max_sentences_per_chunkstringrequired

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

    Example: 80
    split_newlinesbooleanrequired

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

    Example: true
    overlap_sizestringrequired

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

    Example: 10
    chunk_sizestringrequired

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

    Example: 50
    number_of_chunksintegerrequired

    Number of Chunks in the Document.

    Example: 2345
    created_atdate-timerequired

    Document Creation Date.

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

    Document Update Date.

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