Files
Update file expiry
Changed onUpdate 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
- Base URLhttps://us.app.zuva.ai/api/v2
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
file_idstring required
File ID
Headers
Expirationstring
Expiration time for the file
Response
The file was updated successfully.
Example response
{
"expiration": "2021-10-07T12:07:57Z",
"file_id": "c5e407f1qk1er7odm6tg"
}Changes
- info
endpoint added
- info