Skip to content

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

RelationKeyTypeRelation Field(s)
UseruserBelongs touser_id
FilemanagerFilefileBelongs todirectory_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

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

KeyTypeDefaultDescription
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
}