AgentFS

Restore a file from the trash

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

AgentFS file ID.

Response Body

application/json

application/problem+json

application/problem+json

POST
/v1/files/{id}/restore
curl -X POST "https://example.com/v1/files/string/restore"
{  "type": "file",  "id": "string",  "name": "string",  "path": "string",  "size_bytes": 0,  "revision": 0,  "visibility": "public",  "url": "http://example.com",  "etag": "string",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}