Update

Update a calendar booking

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areacalendar.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.9Overview
ActionYesThe action to performaction=update
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
calDiaryInternalYes"calDiaryInternal":"56566"
calIsoDateTimeStartYes"calIsoDateTimeStart":"2017-07-10T14:30:00"
calIsoDateTimeEndYes"calIsoDateTimeEnd":"2017-07-10T15:45:00"
calAllDayYes"calAllDay":"false"
calResourceIdYes"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
    }
  ]
}