Update a source
PATCH
/api/v1/sources/{id}The file itself cannot be replaced; upload a new source instead.
Authorizations
Section titled “Authorizations”Path Parameters
Section titled “Path Parameters”NameType
id
required
string
The record’s prefixed ID
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
source
required
object
title
string
description
string
Responses
Section titled “Responses”200
The updated source
The updated source
Response body
Media typeapplication/json
object
id
string
title
string
description
string | null
state
string
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
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
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
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