ProJect - Get project column header
API Url
Used for loading project column header.
GET
http://localhost:16010/ProMarkREST/rest/ProJect/headers
Permissions: user
Success 200
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data. |
| headers | Object[] | Collection of project column headers. |
| dimensions | Object[] | Collection of dimensions. |
| id | Number | Dimension Number. 0-5 |
| label | String | Dimension Description. |
| infoId | String | Dimension Info ID. |
| label | String | Column Label. |
| order | String | Column Order. |
| type | Number | Column Type (1: Project, 2: Activity, 3: Time type, 4: Piecework, 5: Fixed dimension, 6: Weekday). 1-6 |
| weekDays | Object[] | Collection of week days. |
| day | Number | Week day number. 1-7 |
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": {"headers": [{"order": 1,"type": 1,"label": "Project"},{"order": 2,"type": 2,"label": "Activity"},{"order": 3,"type": 3,"label": "Time type"},{"order": 4,"type": 5,"label": "","dimensions": [{"id": 1,"infoId": ":DEPT","label": "Department"},{"id": 2,"infoId": ":GROUP","label": "Group"}]},{"order": 5,"type": 6,"label": "","weekDays": [{"day": 1},{"day": 2},{"day": 3},{"day": 4},{"day": 5},{"day": 6},{"day": 7}]}]},"errorCode": 0,"errorMessage": ""}}
Error 4xx
| Field | Type | Description |
|---|---|---|
| response | Object | Main object containing the response data. |
| data | Object | Object containing the requested data (empty). |
| errorCode | Number | Error code. |
| errorMessage | String | Error description. |