Appearance
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 hashedid
of theFilemanagerFileSharedUrl
List
Get a list of all FilemanagerFileSharedUrls
.
Definition
GET /api/filemanager/shared-urls/files
Example Request
php
Example Response
json
Get
Get a single FilemanagerFileSharedUrl
by id
or hash
.
Definition
GET /api/filemanager/shared-urls/files/{idOrHash}
Example Request
php
Example Response
json
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
php
Example Response
json
Delete
Delete an existing FilemanagerFileSharedUrl
by id
.
Definition
DELETE /api/filemanager/shared-urls/files/{id}
Example Request
php
$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
json
{
"status": "success",
"data": null
}