FilemanagerFileSharedUrls

Introduction

If a User wants to share a FilemanagerFile there needs to be a public accessible URL to retrieve data.

This URLs are represented as FilemanagerFileSharedUrls and thus given can be revoked after creating them.

Model & Relations

Namespace

Modules\Filemanager\Entities\FilemanagerFileSharedUrl

Relations

Relation Key Type Relation Field(s)
User user Belongs to user_id
FilemanagerFile file Belongs to directory_id

Computed Properties

  • hash - The hashed id of the FilemanagerFileSharedUrl

List

Get a list of all FilemanagerFileSharedUrls.

Definition

GET /api/filemanager/shared-urls/files

Example Request

Example Response


Get

Get a single FilemanagerFileSharedUrl by id or hash.

Definition

GET /api/filemanager/shared-urls/files/{idOrHash}

Example Request

Example Response


Create

Create a new FilemanagerFileSharedUrl.

Definition

POST /api/filemanager/shared-urls/files

Request Keys

Key Type Default Description
user_id * integer - Related User
file_id * integer - The FilemanagerFile to be shared

Keys with * are required.

Example Request

Example Response


Delete

Delete an existing FilemanagerFileSharedUrl by id.

Definition

DELETE /api/filemanager/shared-urls/files/{id}

Example Request

$client = new GuzzleHttp\Client(['base_uri' => 'https://{tenant}.intratool.de']);
$response = $client->request('DELETE', '/api/filemanager/shared-urls/files/3', [
    'headers' => ['Authorization' => "Bearer {accessToken}"]
]);

Example Response

{
  "status": "success",
  "data": null
}
Last Updated: 10/14/2019