PUT api/v2/environments/upload?EnvironmentId={EnvironmentId}
Upload environment
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| EnvironmentId | universally unique identifier |
Required |
Body Parameters
The file
UploadEnvironmentCommandFile| Name | Description | Type | Additional information |
|---|---|---|---|
| File |
File to upload. |
File |
Allowed file types docx pdf txt xlsx. Maximum file name length 256 characters. Maximum file size 10 MB (10,485,760 bytes). |
Request Formats
multipart/form-data
Sample:
--37ed4d23-26c7-4456-8aa9-a9c43324788b Content-Disposition: form-data; filename="example.txt"; name="File" Content-Type: text/plain example --37ed4d23-26c7-4456-8aa9-a9c43324788b--
Response Information
Resource Description
The upload environment command result
UploadEnvironmentCommandResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | UploadEnvironmentCommandResultKind |
Required |
|
| Algorithm | HashAlgorithmKind |
None. |
|
| Hash | Collection of byte |
None. |
|
| Size | integer (64 bits) |
None. |
Response Formats
application/json
Sample:
{
"Result": "Success",
"Algorithm": "SHA256",
"Hash": "QEA=",
"Size": 1
}