Skip to content

bulkAppointmentBooker

Supported, no replacement yet

This endpoint remains fully supported. No replacement exists in the new API yet, and no action is needed. When a replacement ships you will get 12 months' notice, and this site will be updated.

Reference


/rest/rs/bulkAppointmentBook/

POST
Books appointments using the pooled booking mechanism for jobs that match the job search criteria provided.  Appointment booking will start from the start date provided and proceed to book pooled appointments for each job in a Day Division until that Day Division is full and then it moves on to the next Day Division.  Appointments will be booked with the Supplier and Zone Type provided.  Jobs will be processed in the order specified in the sortMethod parameter.  A limit on the number of days to try can also be set.

parameters:

None

acceptable request representations:

  • application/json
{
    "clientRef":"sor",    "supplierId":"2",     "resourceId":"12",    "zoneType":"0",     "startDate":"12/12/2012",     "sortMethod" : "1",     "maxDaysToTry":"7",    "excludeDayDivisions":"1,4",    "useJobDuration":"1",    "jobSearchCriteria" :     { 
        "serviceId":"2",         "workTypeId":"45",                  "workLogTypeId":"1",         "priorityId":"2",         "causeId":"4",        "statusId":"2",         "createdDateStart":"10/12/2012",         "createdDateEnd":"12/12/2012",        "reportedDateStart":"01/12/2012",        "reportedDateEnd":"01/12/2012",        "loggedById":"35",         "siteGroupId":"4",         "supplierId":"12", 
    } 
}

Notes

  • zoneType: 0 = Any, 1 = Primary Only, 2 = Primary and Secondary
  • sortMethod: 1 = By Job Creation Date, 2 = By Post Code
  • maxDaysToTry defaults to 60
  • NOTE: the SERSE right can be used to control whether resources who cover Primary or Secondary services are considered
  • excludeDayDivisions - OPTIONAL PARAMETER - comma-delimited list of day division ID's to exclude
  • jobSearchCriteria parameters are optional.  If not provided "ALL" is assumed.
  • useJobDuration - If set to one will use the duration set in the Job table (job_duration), else it will use the total duration of activities

available response representations:
  • 200 - application/json
{
  "result" : "success or fail",
  "result_msg" : "error message"
}

See the Resource Scheduler API matrix for the full list of endpoints in this category.