Approval - Get approval groups
API Url
Used for loading valid approval groups for current userId.
http://localhost:16010/ProMarkREST/rest/Approval/approval-groups
Permissions: user
Query parameters
| Field | Type | Description |
|---|---|---|
approvalTypeoptional | String | All active approval groups are returned for Administrator. Available approval type options ("protime", "project", "") protime = return only allowed protime approval groups, |
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| groups | Object | Collection of approval groups. |
| approvalType | String | Allowed approval types ("project" = allow to approve only project transactions, "protime" = allow to approve only protime transaction, "all"= allow to approve both protime and project transactions). "protime""project""all" |
| description | String | Approval group desription. |
| id | String | Approval group ID. |
messageoptional | Object | Object containing response messages. |
| code | Number | Message code. |
| text | String | Message text. |
| type | String | Type of message. "warning""info" |
Success example:
HTTP/1.1 200 OK{"response": {"data": {"groups": [{"id": "01","description": "Kem Default"."approvalType":"all"},{"id": "AGPM1","description": "App.group ProManagement 1","approvalType":"project"},{"id": "JAO:01","description": "JAO approval group","approvalType": "protime"},{"id": "AGPM2","description": "App.group ProManagement 2","approvalType":"protime"}]},"errorCode": 0,"errorMessage": ""}}