cURL
curl --request PATCH \ --url https://dash.empirical.run/api/files/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "status": "<string>" } '
{ "data": { "file": { "id": 123, "name": "<string>", "url": "<string>", "description": "<string>", "mime_type": "<string>", "size_bytes": 123, "status": "pending", "access_level": "<string>", "created_by": "<string>", "created_at": "<string>", "updated_at": "<string>" } } }
Update a file name, description, or confirm upload by setting status to “uploaded”.
API key from the Empirical dashboard.
File ID.
-9007199254740991 <= x <= 9007199254740991
Fields to update.
New name for the resource.
Description for the resource.
Set to "uploaded" to confirm a pending upload.
"uploaded"
Updated file.
Show child attributes
Was this page helpful?