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

    Possible values: non-empty and <= 3000 characters

    The name of the extraction schema

    project_id

    object

    The ID of the project that the extraction schema belongs to

    anyOf

    string

    file_ids uuid[]required

    Possible values: >= 1

    The IDs of the files that the extraction schema contains

    stream Stream (boolean)

    Whether to stream the results of the extraction schema

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

Loading...