| POST | /maintenancemanagement/legacyworkorders/file | Returns matching work orders | We used POST in lieu of GET as the request can exceed the allowable GET size threshold. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| UserID | query | Guid | Yes | The UserID that authorizes the caller to complete the request. Contact your eQuip admin. |
| holdingTableID | body | int | No | |
| tableName | body | string | No | |
| SearchParamCollection | body | List<SearchParam> | No | |
| RefineFilter | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| FieldID | body | string | No | |
| FieldName | body | string | No | |
| FieldValue | body | Object | No | |
| Operator | body | string | No | |
| FieldType | body | short | No | |
| FieldText | body | string | No | |
| UseMultiSelect | body | bool | No | |
| IsSearchAsTextbox | body | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Name | path | string | No | File name |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /csv/reply/GetExportTemplateData HTTP/1.1
Host: equipstage3.e-isg.com
Content-Type: text/csv
Content-Length: length
{"UserID":"String","holdingTableID":0,"tableName":"String","SearchParamCollection":[{"FieldID":"String","FieldName":"String","FieldValue":{},"Operator":"String","FieldType":0,"FieldText":"String","UseMultiSelect":false,"IsSearchAsTextbox":false}],"RefineFilter":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Name":"String"}