Skip to main content

Infer Schema

POST 

/api/v1/extraction/schemas/infer

Infer Schema

Request

Cookie Parameters

    session any

Body

required

    schema_id

    object

    The ID of a schema to update with the new schema

    anyOf

    string

    name Name (string)required

    The name of the extraction schema

    Possible values: non-empty and <= 3000 characters

    project_id

    object

    The ID of the project that the extraction schema belongs to

    anyOf

    string

    file_ids uuid[]required

    The IDs of the files that the extraction schema contains

    Possible values: >= 1

    stream Stream (boolean)

    Whether to stream the results of the extraction schema

    Default value: false

Responses

Successful Response

Schema

    id uuidrequired

    Unique identifier

    created_at

    object

    Creation datetime

    anyOf

    string

    updated_at

    object

    Update datetime

    anyOf

    string

    name Name (string)required

    The name of the extraction schema

    project_id uuidrequired

    The ID of the project that the extraction schema belongs to

    data_schema

    object

    The schema of the data

    anyOf

    property name*

    object

    anyOf

    object

Loading...