Requests
A Request is a file that should be uploaded by a specific user or group.
Requests can either be manually created and managed, or managed automatically by an Automation.
List Requests
SDK Method
request.List()
Return Object
[]*Request
Authorization Requirement
Available to all authenticated keys or sessions.
RequestListParams Fields
| Field | Description |
|---|---|
| Mine boolean | Only show requests of the current user? (Defaults to true if current user is not a site admin.) |
| Path string | Path to show requests for. If omitted, shows all paths. Send / to represent the root directory. |
Additional Arguments
List Requests
SDK Method
request.GetFolder()
Return Object
[]*Request
Authorization Requirement
Available to all authenticated keys or sessions.
RequestGetFolderParams Fields
| Field | Description |
|---|---|
| Mine boolean | Only show requests of the current user? (Defaults to true if current user is not a site admin.) |
| Path string Required | Path to show requests for. If omitted, shows all paths. Send / to represent the root directory. |
Additional Arguments
Create Request
SDK Method
request.Create()
Return Object
Request
Authorization Requirement
Available to all authenticated keys or sessions.
RequestCreateParams Fields
| Field | Description |
|---|---|
| Path string Required | Folder path on which to request the file. |
| Destination string Required | Destination filename (without extension) to request. |
| UserIds string | A list of user IDs to request the file from. If sent as a string, it should be comma-delimited. |
| GroupIds string | A list of group IDs to request the file from. If sent as a string, it should be comma-delimited. |
Delete Request
SDK Method
request.Delete()
Return Object
No return value.
Authorization Requirement
Available to all authenticated keys or sessions.
RequestDeleteParams Fields
| Field | Description |
|---|---|
| Id int64 Required | Request ID. |
The Request Object
Some of the methods above return a Request object. The attributes of this object are listed below.
| Attribute | Description |
|---|---|
| Id int64 | Request ID |
| Path string | Folder path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters. |
| Source string | Source filename, if applicable |
| Destination string | Destination filename |
| AutomationId int64 | ID of automation that created request |
| UserDisplayName string | User making the request (if applicable) |