Update a File

put

/api/file/Files/{id}

Updates the file in Unified Assurance file storage that matches the specified ID.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Allowed Values: [ "Never", "2023-02-28 05:02:00" ]
    Expire time of file. Can be used to create a cleanup policy of expired files. It should be of format "yyyy-mm-dd hh:mm:ss" or "Never".
    Example: Never
  • Unique identifier for the file type. Allowed Values: - 1 => Other - 2 => Image - 3 => Report - 4 => Sound
    Example: 2
  • The MIME type of the file.
    Example:
  • The user group owner of the file.
    Example: 1
  • The user owner of the file.
    Example: 0
  • Upload File contents. Filename is determined from Content-Disposition filename. Fake upload (add file already on server), by populating with $_FILES fields.
  • Viewers
    Selection of user groups that have read-only access to file.
Nested Schema : Viewers
Type: array
Selection of user groups that have read-only access to file.
Show Source
Example:
[
    {
        "UserGroupID":"0",
        "UserGroupName":"[Public to All Groups]"
    }
]
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : schema
Match All
Show Source
Nested Schema : SuccessfulUpdateOperation
Type: object
Show Source
Nested Schema : type
Type: object
Show Source
Nested Schema : data
Type: array
Show Source
Nested Schema : fileFileTypesRead
Type: object
Show Source

Default Response

Failed operation
Body ()
Root Schema : schema
Type: object
Show Source
Nested Schema : errors
Type: array
The list of errors reported. Validation errors will be keyed by record field.
Show Source
Nested Schema : items
Type: object
Back to Top