Skip to content

Update a source

PATCH
/api/v1/sources/{id}

The file itself cannot be replaced; upload a new source instead.

NameType
id
required
string

The record’s prefixed ID

Media typeapplication/json
object
source
required
object
title
string
description
string

200

The updated source

Response body
Media typeapplication/json
object
id
string
title
string
description
string | null
state
string
Allowed values: new ocr_job_started ocr_job_completed ocr_job_failed ocr_data_processed embedding_complete embedding_failed

Processing state. Passages are searchable once embedding_complete.

file
object
filename
string
content_type
string
byte_size
integer
download_url
string | null format: uri

The download endpoint for this source

created_at
string format: date-time
updated_at
string format: date-time

403

Insufficient scope, role, or credits

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

404

No such record in this account

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation

422

The record could not be saved

Response body
Media typeapplication/json
object
error
object
code
string

A stable machine-readable code

message
string
details
Array<string>

Present on validation errors; one entry per failed validation