Exports
Exports
GetPermissions
Get all file permissions
Request
GET /api/rp/v1/Exports/File/{id}/permissions
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string |
Responses
Status Code | Description | Samples |
---|---|---|
200 | got permissions successfully |
|
400 | id is not valid |
|
403 | You don't have rights for the operation |
|
404 | file is not found |
UpdatePermissions
Update permissions
Request
POST /api/rp/v1/Exports/File/{id}/permissions
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | ||
permissionsVM |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Success |
|
400 | Bad Request |
|
402 | Client Error |
|
403 | Forbidden |
|
404 | Not Found |
|
500 | Server Error |
GetFile
Get specified file
User with Get Entity permission can access this method.
Request
GET /api/rp/v1/Exports/File/{id}
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | file id |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Returns the specified file |
|
400 | Id is null |
|
403 | You don't have rights for the operation |
|
404 | File not found |
|
500 | Exception thrown |
DeleteFile
Delete specified file
User with Delete permission can access the method.
Request
DELETE /api/rp/v1/Exports/File/{id}
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | file id |
Responses
Status Code | Description | Samples |
---|---|---|
204 | File succesfully deleted |
|
400 | Id is null |
|
403 | You don't have rights for the operation |
|
402 | Subscription is outdated |
|
404 | File not found |
|
500 | Exception thrown |
GetFilesCount
Get count of files what contains in a specified folder
User with Get Count permission can access this method.
Request
GET /api/rp/v1/Exports/Folder/{id}/CountFiles
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | folder id |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Returns count of the files in a specified folder |
|
400 | FolderId is null |
|
403 | You don't have rights for the operation |
|
404 | Folder not found |
|
500 | Exception thrown |
GetFilesList
Get all files from specified folder
User with Get Entity permission can access this method.
Request
GET /api/rp/v1/Exports/Folder/{id}/ListFiles[?skip&take]
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | folder id |
|
skip | integer | 0 | number of files, that have to be skipped |
take | integer | 10 | number of files, that have to be returned |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Returns list of the files from a specified folder |
|
400 | FolderId is null |
|
403 | You don't have rights for the operation |
|
404 | File or folder not found |
|
500 | Exception thrown |
MoveFile
Move file to a specified folder
User with Update Place permission can access this method.
Request
POST /api/rp/v1/Exports/File/{id}/Move/{folderId}
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | file id |
|
*folderId | string | folder id |
Responses
Status Code | Description | Samples |
---|---|---|
200 | File has been moved |
|
400 | fileId or folderId is null |
|
403 | You don't have rights for the operation |
|
402 | Subscription is outdated |
|
404 | File or folder not found |
|
500 | Exception thrown |
CopyFile
Copy file to a specified folder
Request
POST /api/rp/v1/Exports/File/{id}/Copy/{folderId}
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | file id |
|
*folderId | string | folder id |
Responses
Status Code | Description | Samples |
---|---|---|
200 | File has been copied |
|
400 | fileId or folderId is null |
|
403 | You don't have rights for the operation |
|
402 | Subscription is outdated |
|
404 | File or folder not found |
|
500 | Exception thrown |
RenameFile
Rename a file
User with Update Name permission can access this method.
Request
PUT /api/rp/v1/Exports/File/{id}/Rename
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | User with Update Name permission can access this method. |
|
nameModel | User with Update Name permission can access this method. |
Responses
Status Code | Description | Samples |
---|---|---|
200 | File name has been updated |
|
400 | FileId is null |
|
403 | You don't have rights for the operation |
|
402 | Subscription is outdated |
|
404 | File not found |
|
500 | Exception thrown |
UpdateIcon
Update a files's icon
User with Update Icon permission can access this method.
Request
PUT /api/rp/v1/Exports/File/{id}/Icon
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | User with Update Icon permission can access this method. |
|
iconModel | User with Update Icon permission can access this method. |
Responses
Status Code | Description | Samples |
---|---|---|
200 | File's icon has been updated |
|
400 | FileId is null |
|
403 | You don't have rights for the operation |
|
402 | Subscription is outdated |
|
404 | File not found |
|
500 | Exception thrown |
UpdateTags
Update tags
User with Update Tags permission can access this method.
Request
PUT /api/rp/v1/Exports/File/{id}/UpdateTags
Parameters
Name | Type | Value | Notes |
---|---|---|---|
*id | string | User with Update Tags permission can access this method. |
|
tagsModel | User with Update Tags permission can access this method. |
Responses
Status Code | Description | Samples |
---|---|---|
200 | Tags has been updated |
|
400 | FileId is null |
|
403 | You don't have rights for the operation |
|
402 | Subscription is outdated |
|
404 | File not found |
|
500 | Exception thrown |