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
  • The ID of the file type. The following default integer values will be mapped to a string in the FileType property automatically:
    • 1: Other
    • 2: Image
    • 3: Report
    • 4: Sound
    Any additional custom file types are mapped to values 1000 and up.
    This should, but does not have to, match the type indicated by the file's extension.
    Example: 2
  • The MIME type of the file. If you specify this parameter, it is used as specified, even if it does not match the type indicated by the file's extension. If you do not specify this property, it will be automatically detected based on the file's extension.
    Example: image/png
  • The user group owner of the file.
    Example: 1
  • The ID of the user that owns the file. This can never be an externally-authenticated transient user. 0 means it is public to all users in the owning group.
    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
The response body for a successful update operation.
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
An error.
Back to Top