Update a calendar booking
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 |
Action | Yes | The action to perform | action=update | |
Input | Yes | JSON string | See below |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
calDiaryInternal | Yes | "calDiaryInternal":"56566" | |
calIsoDateTimeStart | Yes | "calIsoDateTimeStart":"2017-07-10T14:30:00" | |
calIsoDateTimeEnd | Yes | "calIsoDateTimeEnd":"2017-07-10T15:45:00" | |
calAllDay | Yes | "calAllDay":"false" | |
calResourceId | Yes | "calResourceId":"34" |
Example request:
http://<SERVER>/jsonapi/calendar.json?user=user&password=user&version=3.9&action=update&input={
"data": [
{
"calDiaryInternal": "56566",
"calIsoDateTimeStart": "2017-07-10T14:30:00",
"calIsoDateTimeEnd": "2017-07-10T15:45:00",
"calAllDay": "false",
"calResourceId": "34"
}
]
}
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"data": [
{
"calDiaryInternal": 56566,
"calUuid": "7239680C46928342AB66D5524C1E1C44",
"calResourceId": "34",
"calResourceName": "Freelancer.01",
"calTimeSummaryInternal": 1005543,
"calClientCode": "1/1DFHTEST",
"calClientName": "SnakeByte Software",
"calJobNumber": "1/00010481",
"calJobNumberSimple": "10481",
"calJobDescription1stLine": "No date dependencies test",
"calJobHandlerName": "David.Harvey",
"calJobAndPhase": "1/00010481.H01",
"calJobPhaseNumberSimple": "10481.H01",
"calPhaseDescription1stLine": "Design 2t",
"calStageCode": "",
"calTaskDescription": "",
"calChargeCode": "1/ALT",
"calChargeCodeDescription": "Amends New",
"calDescription": "",
"calNotes": "",
"calStatus": "",
"calRequestStatus": "",
"calStartDate": "2017-07-10",
"calStartTime": "14:30:00",
"calEndTime": "15:45:00",
"calIsoDateTimeStart": "2017-07-10T14:30:00",
"calIsoDateTimeEnd": "2017-07-10T15:45:00",
"calAllDay": false,
"calColourHex": "EBFF00",
"calFeedback": "TIMEREQUIRED",
"calWeakLink": 5999,
"calendarunallocatedunique": "1/00010481.H01###1/ALT",
"calendarunallocatedestimated": 1,
"calendarunallocatedbooked": 3.5,
"calendarunallocatedremaining": -2.5,
"calendarunallocatedtimesheets": 0,
"calendarunallocateddraft": 0,
"calendarunallocatedinitials": "F0,FC",
"calNumberOfDays": "1",
"calDurationDescription": "1.25 hours",
"calHoursPerDay": "1.25",
"calTimeStampModified": 0,
"calRecordVersionNumber": 0
}
]
}