POST api/Upload?version={version}&taskname={taskname}&machinename={machinename}&selectedProjectId={selectedProjectId}&testOnly={testOnly}&log={log}
Allows a third party to upload data securely to Sumerian. You are required to send a sumerian token as an Authorization Header. e.g. Authorization: SUMERIAN CC62C5D11BDE2D11D50627837BCF7FA1E5795B7FA07CA8B583381EABCD490D70. You can retrieve a secure token by calling the Login controller. Please refer to documentation for further help. You also need to include an Content-Disposition HTTP header to tell the API what the name of the file that is being uploaded is. The body of the request is the uploaded binary file data.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
version |
This should be used to identify a script version from the sumerian side so that we can provide support. |
string |
Required |
taskname |
Set this to Script |
string |
Default value is |
machinename |
The hostname (or unique id in your domain) that is running the script. This is so we can differentiate different installation of scripts or clients |
string |
Default value is |
selectedProjectId |
This is an identifier and will be provided by sumerian |
integer |
None. |
testOnly |
This is used by the windows data collector for testing newly added tasks |
boolean |
Default value is False |
log |
This is used by the windows data collector and should not be used for any scripts or third party access. |
integer |
Default value is 0 |
Body Parameters
None.
Response Information
Resource Description
A standard HTTP Response. 200 for success, 403 for forbidden
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |