ProReport - Update report instance filters
API Url
Will update the filter used on a report, but only if report was not already executed.
http://localhost:16010/ProMarkREST/rest/ProReport/repository/{id}/filters
Permissions: user
Parameter
| Field | Type | Description |
|---|---|---|
| request | Object | Main object containing the request data. |
| data | Object | Object containg data to be uploaded. |
| filters | Object[] | Object with report filters. |
| fields | Object[] | Selected filter fields. |
| condition | String | Condition identifier (1=Equals, 2=Does not equal, 3=Begins with, 4=Ends with, 5=Contains, 6=Contains data, 7=Does not contain data). |
| fieldId | String | Field identifier. |
| values | String[] | List of selected values. |
| id | Number | Unique filter identifier. |
| level | Number | Filter level (0=System, 1=User profile, 2=Personal). 0-2 |
| name | String | Name of the filter. |
| options | Object[] | Selected filter options. |
| id | String | Option identifier. |
| value | String | Option value. |
| type | Number | Filter type (1=Employee, 2=Reason, 3=Account, 4=ProJect, 5=Order/Operation, 6=Workcenter, 7=Terminal). 1-7 |
Path parameters
| Field | Type | Description |
|---|---|---|
| id | String | Unique identifier of the report instance. |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |
Error example:
HTTP/1.1 200 OK{"response": {"errorCode": 0,"errorMessage": ""}}