Update

Update a calendar booking

Calendar update

Update a calendar booking.

Parameter

Description

Examples

More info

Action

Update a record in calendar bookings

action=create

Parameters described in overview

Overview

Input

JSON string

"data": ...

calDiaryInternal

"calDiaryInternal":"56566"

calIsoDateTimeStart

"calIsoDateTimeStart":"2017-07-10T14:30:00"

calIsoDateTimeEnd

"calIsoDateTimeEnd":"2017-07-10T15:45:00"

calAllDay

"calAllDay":"false"

calResourceId

"calResourceId":"34"

Example request:
Request to update a booking

http://<SERVER>/jsonapi/calendar.json?user=user&password=user&version=3.3&action=update&input={"data": [{"calDiaryInternal":"56566","calIsoDateTimeStart":"2017-07-10T14:30:00","calIsoDateTimeEnd":"2017-07-10T15:45:00","calAllDay":"false","calResourceId":"34"}]}&_=1499954251810_

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
    }
  ]
}