Skip to main content
PATCH
Update a file's expiry
See the Files guide.

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Path Parameters

id
string
required

File ID (file_…)

Body

application/json
ttl_seconds
integer
required

Positive integer (max 3153600000

Response

Successful response

bytes
integer
created_at
string<date-time>
expires_at
string<date-time>
filename
string
id
string

file_… id

mime_type
string
object
string
Example:

"file"

purpose
string
status
string