Files

Update a file

Change a file's metadata, content type or expiry. Its bytes and path stay.

post/v1/files/{file_id}

Request

  • Base URL
    https://api.dexto.ai
  • URL
    https://api.dexto.ai/v1/files/{file_id}
  • Auth
    HTTP bearer

Path parameters

file_idstring required

Request body

content_typestring
expires_atstring date-time nullable

Delete the file at this time. Files are kept until deleted when omitted.

metadataobject

Replaces the whole metadata.

Response

Successful response.

content_typestring required
created_atstring date-time required
expires_atstring date-time nullable required
idstring uuid required
metadataobject required
object'file' required
pathstring required
sha256string required
size_bytesinteger required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.