Filters - Get list of filters

API Url

Use it for loading the filter list (main). For all filter details, use /rest/General/filters/{id}.

GET
http://localhost:16010/ProMarkREST/rest/General/filter_list/{type}

Permissions: user

Path parameters

FieldTypeDescription
typeNumber

Filter type (1=Employee, 2=Reason, 3=Account, 4=ProJect, 5=Order/Operation, 6=Workcenter, 7=Terminal).

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    filterListObject[]

Selected filter fields.

      idNumber

Unique identifier of the filter.

      levelNumber

Filter level (0=System, 1=User profile, 2=Personal).

Size range: 0-2
      levelIdoptionalString

Owner ID according to level.

      nameString

Name of the filter.

      protectedBoolean

Filter is read-only (true/false).

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"filterList": [
{
"id": 123456789,
"name": "My new filter",
"level": 2,
"levelId": "JOHN"
"protected": false
},
{
"id": 987654321,
"name": "A system filter",
"level": 0,
"protected": true
},
{
"id": 987654321,
"name": "A user profile filter",
"level": 1,
"levelId": "PR001"
"protected": true
}
]
},
"erorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.