Gets a list of items that can be used to drop requisitions on to the calendar to create new requisition bookings.
Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | calendar.json | |
General | Yes | Parameters described in overview | user=user&password=user&version=3.9 | Overview |
Sort | No | Change the view's default sort order | sort=CLIENT | Sorting |
Company | Yes | The company number | company=1 | |
Action | Yes | The action to perform | action=unallocated | |
Persistent Backend Search | No | persistBackendSearch=N | ||
Direction | No | Ascending or descending sort | direction=1 | ascending is 1, descending is -1 |
Client | No | Client number | client= | |
Job | No | Job number | job= | |
Job Phase | No | Job and phase number | jobphase= |
Example request:
http://<SERVER>/jsonapi/calendar.json?user=user&password=user&version=3.9&action=requisitions&company=3&persistBackendSearch=N&sort=&direction=1
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 13,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"calActionedReqSelect": false,
"calActivityIdReqSelect": 7904,
"calRequisitionActivityUuid": "2A00D222A8109D45AB1AA44D5430D935",
"calBookedReqSelect": 11.55,
"calChargeCodeReqSelect": "3/SICK",
"calChargeDescReqSelect": "Sickness",
"calClientCodeReqSelect": "3/AMTCLIEN",
"calClientNameReqSelect": "A MT Client",
"calCreatedReqSelect": "2018-07-27",
"calDueDateReqSelect": "2019-04-25",
"calDetailsReqSelect": "some details ",
"calJobDescReqSelect": "test gannt",
"calJobPhaseReqSelect": "3/AM5555.A01",
"calJobUuidReqSelect": "174A7C1F5B91EB4CA920064FEEA234CC",
"calPhaseDescReqSelect": "phase desc",
"calOwnerNameReqSelect": "Babe Ruth",
"calOwnerIdReqSelect": 319,
"calHoursReqSelect": 0,
"calResourceReqSelect": "3/BR",
"calResourceNameReqSelect": "Babe Ruth",
"calResourceUseridReqSelect": 319,
"calStartReqSelect": "2018-11-14",
"calSubjectReqSelect": "artwork ",
"calUuidReqSelect": "B93E3A8834AFFC4FB99F739ED574090A",
"calStageCodeReqSelect": "",
"calStageDescReqSelect": ""
},
etc. etc.