POST | /api/reports/import | Import Reports to Coruson | Provide an XML file that fits the schema to create reports |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Filename | body | string | Yes | The filename of the xml to import reports |
FileBytes | body | byte[] | Yes | The byte array of the xml to import reports |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Version | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ImportId | form | Guid | No | |
DuplicateReports | form | List<Guid> | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
StatusDescription | form | string | No | |
ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/ImportReports HTTP/1.1
Host: platform.gaelenlighten.com
Content-Type: text/jsv
Content-Length: length
{
Filename: String,
Version: 0,
FileBytes: AA==
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { StatusDescription: String, DuplicateReports: [ 00000000-0000-0000-0000-000000000000 ], ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } } }