schedule.schedule

Management of individual schedules.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
id (required)integerSchedule id

CREATE

ParametersTypeDescription
token (required)Valid token
name (required)varcharSchedule name
active (accepted)enum (-1,1)-1: inactive
1: active
start_time (accepted)timeStart time
end_time (accepted)timeEnd time
color (accepted)integerColor
location (accepted)integerLocation id
visible (accepted)enum (0,1)0: visible
1: unvisible

UPDATE

ParametersTypeDescription
token (required)Valid token
id (required)integerSchedule id
active (accepted)enum (-1,1)-1: inactive
1: active
job_code (accepted)varcharJob code
name (accepted)varcharName
start_time (accepted)timeStart time
end_time (accepted)timeEnd time
color (accepted)integerColor
location (accepted)integerLocation
visible (accepted)enum (0,1)0: visible
1: unvisible

DELETE

ParametersTypeDescription
token (required)Valid token
id (required)integerSchedule id

DOCUMENTATION

GET
Retrieves an individual schedule.
Level 5 is required (all users can fetch this module)

--

Example Request:

{
   "module":"schedule.schedule",
   "method":"GET",
   "request":{
      "id":"1433"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"32408",
      "name":"Admin\/meetings",
      "start_time":{
         "id":"1",
         "time":"12 am"
      },
      "end_time":{
         "id":"97",
         "time":"midnight"
      },
      "color":"1",
      "ical":"http:\/\/www.humanity.com\/ical\/-044.ics"
   },
   "token":"xxxxxxx"
}

CREATE
Creates an individual schedule.
Level 3 is required.

--

Example Request:

{
   "module":"schedule.schedule",
   "method":"CREATE",
   "request":{
      "name":"NewSchedule"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"32412",
      "name":"NewSchedule",
      "start_time":{
         "id":"1",
         "time":"12 am"
      },
      "end_time":{
         "id":"97",
         "time":"midnight"
      },
      "color":"1",
      "ical":"http:\/\/www.humanity.com\/ical\/-044.ics"
   },
   "token":"xxxxxxx"
}

UPDATE
Updates an individual schedule.
Level 3 is required.

--

Example Request:

{
   "module":"schedule.schedule",
   "method":"UPDATE",
   "request":{
      "id":"32408",
      "name":"Updated"
   }
}

Example Response:

{
   "status":1,
   "data":{
      "id":"32408",
      "name":"Updated",
      "start_time":{
         "id":"1",
         "time":"12 am"
      },
      "end_time":{
         "id":"97",
         "time":"midnight"
      },
      "color":"1",
      "ical":"http:\/\/www.humanity.com\/ical\/-044.ics"
   },
   "token":"xxxxxxx"
}

DELETE
Deletes an individual schedule.
Level 3 is required.

--

Example request:

{
   "module":"schedule.schedule",
   "method":"DELETE",
   "request":{
      "id":"683"
   }
}

Example Response:

{
   "status":1,
   "data":"",
   "token":"xxxxxxx"
}