Delete an unused file

Updated on 30 Apr 2020

Description

A User or External Entity on behalf of a User with role permission MEDIA_FILE_OWNER will go through all steps of “Get media files by the specified filter” Use Case and then send a request to Endpoint “Delete an unused file”.

Actors

  1. External Entity that can interact with System Operator API acting as a registered System Operator User with permissions: MEDIA_FILE_OWNER.
  2. System Operator running “SDK.Finance” software and exposing the portfolio of financial APIs.

Preconditions

  1. The user must have a System Operator profile with sufficient access privileges.

Basic Flow

By default, this flow assumes that External Entity sends Requests to System Operator Endpoints, and System Operator sends back Responses to External Entity.

  1. Perform all steps of Use Case “Get media files by the specified filter”.
  2. External Entity sends a request to Endpoint “Delete an unused file”.

Endpoint URL: https://sdkfinance.app/api/ui/#!/Media_files_management/Delete_unused_file

Authorization – authorization token

id – file identifier

  1. System Operator returns result information to External Entity. (See Result example below)

Optional Flow with Web Browser UI

  1. Perform all steps of Use Case “Get media files by the specified filter”.
  2. A user sends a request to Endpoint “Delete an unused file”.

Endpoint URL: https://sdkfinance.app/api/ui/#!/Media_files_management/Delete_unused_file

Authorization – authorization token

id – file identifier

  1. System Operator returns result information to User (See Result example below).

Post Conditions

File deleted.

Result example



   "status":"ok",

   "message":"string"

}