Files

Update file expiry

Changed on

Update the expiry on a file. The expiration time can be provided as an absolute timestamp in RFC3339 format (e.g. 2022-12-23T12:34:56Z), or as an interval relative to the time the request is made (e.g 12h or 10d).

put/files/{file_id}/expiration

Request

Path parameters

file_idstring required

File ID

Headers

Expirationstring

Expiration time for the file

Response

The file was updated successfully.

expirationstring

The file expiration in RFC3339 format

file_idstring

The ID of the updated file resource

Example response

{
  "expiration": "2021-10-07T12:07:57Z",
  "file_id": "c5e407f1qk1er7odm6tg"
}

Changes