Skip to main content

Add or Update a Job

This web service allows you to add or edit a job.

Query String Parameters

NameTypeDescriptionRequired
ActionStringJobSaveRequired
JobTypeString(100)Type of the job.Required
JobGroupString(40)Used to group a set of jobs together. If the job is a part of a group job, the group job id will be returned in the response.Optional
JobCategoryString(40)Job category for the job, will be created if it doesn’t exist.Optional
JobRefString(40)Job reference.Optional
JobIdIntThe unique identifier of the job, which can be retrieved using any of the methods listed under add something here.Optional
JobPOStringJob order number.Optional
JobDescriptionString(500)Description of the job.Optional
JobStartdatetimePlanned job start. Format: yyyy-MM-dd HH:mm:ss, local time.Optional
JobDurationMinuteIntPlanned job duration in minutes. Default value is specified under the Admin in the BigChange system.Optional
ResourceReferenceString(15)Reference of the resource scheduled for the job.Optional
ResourceNameString(50)Name of the resource scheduled for the job.Optional
VehicleReferenceString(15)Reference of the vehicle scheduled for the job.Optional
VehicleRegistrationString(50)Registration of the vehicle scheduled for the job.Optional
PreserveScheduleBoolUsed to preserve the job position (job start date and time, resource and vehicle). Default=falseOptional
cust_custom field nameString(500)Pass cust_ followed by the caption of an existing custom field.Optional
ContactPersonIdStringAdd a specific contact person to a job. See Note.Optional
ParentContactPersonIdStringAdd a specific contact person, at the parent contact, to a job.Optional
JobMustStartAfterDateTimeAdds a 'Must Start After' constraint set to the UTC datetime value passed. See Note.Optional
JobMustStartBeforeDateTimeAdds a 'Must Start Before' constraint set to the UTC datetime value passed. See Note.Optional
JobMustCompleteBeforeDateTimeAdds a 'Must Complete Before' constraint set to the UTC datetime value passed. See Note.Optional
AlertWhenEnRouteBoolWhen set to 1, will add a contact alert with default miles value (unless selected with next parameter) of 15.Optional
AlertMilesIntNumber of miles to be assigned to the contact alert, when "AlertWhenEnRoute" is set to 1.Optional
ContactIdIntThe unique identifier of the contact which can be retrieved using Contact List.Optional
ContactReferenceStringThe internal reference of the contact.Optional
ContactNameStringThe name of the contact.Optional
ContactFirstNameStringThis field can be used instead of contact name.Optional
ContactLastNameStringThis field can be used instead of contact name.Optional
IsMainContactBoolSets the contact being changed to the primary contact. The default is true.Optional
ContactGroupStringThe name of the contact group.Optional
ContactParentReferenceStringThe internal reference of the parent contact.Optional
ContactStreetStringThe street address of the contact.Optional
ContactPostcodeStringThe postal code of the contact.Optional
ContactTownStringThe address town of the contact.Optional
ContactCountryStringThe address country of the contact.Optional
ContactLatDoubleLatitude coordinatesOptional
ContactLngDoubleLongitude coordinatesOptional
ContactRadiusMeterIntRadius of circular geofence in meters.Optional
ContactPersonStringThe primary person of the contact.Optional
ContactPhoneStringPlease encode the phone number.Optional
ContactEmailStringEmail address for the primary person of the contact.Optional
ContactExtraStringFree format text information about the Contact.Optional
ContactWhat3WordsStringSet location using What3Words reference. If supplied, ContactLat and ContactLng will take precedence.Optional
ContactReplaceSameRefBoolIf = 1, a contact already in our database with the specified reference will be updated with the new info. 1 or 0. Default 0Optional
ReturnJobRefBoolSet to true to receive the job ref in the response.Optional
SecondaryPersonsInt, String, String, StringSee Note.Optional
RetainSecondaryPersonsBoolSee Note.Optional
SalesOpportunityIdIntId of Sales Opportunity to link to this job. An invalid Id will be ignored, it will not prevent the job being created.Optional
UpdateJobTypeBoolSet to 'True' to update the job type.Optional
JobGroupShowOnDeviceBoolSet 'jobs appear in group on device' tick-box in UIOptional
tip

A job will only be scheduled to a resource if a JobStart and either a ResourceReference, ResourceName, VehicleReference or VehicleRegistration is specified.

tip

You will also need to add some parameters to define the contact. You can do this in 2 ways:

  • Add all the parameters described in "Contact Save". A new contact will then be created with the job.
  • If the contact exists in the BigChange, just add the "ContactReference" parameter with the reference of that contact. It will then be used for the new job.

note

ContactPersonId

To add a new contact person use the ContactSavePerson service, which will return a ContactPersonId. The ContactListPerson will return all ContactPersons for a specified contact.

note

SecondaryPersons

Format the String as: GUID1,Name1,Email1,Phone1 : GUID2,Name2,Email2,Phone2. GUID is the global identifier of the contact user. To retrieve this or any other person information, please use the ContactListPerson web service.

note

RetainSecondaryPersons

If set to 'True' any existing secondary persons associated with the existing job will be retained. If not set, or set to 'False', default behaviour will remove any existing secondary persons and replace with any valid secondary persons passed in SecondaryPersons parameter.

note

Constraint Date Formats

Add by date and time

  • yyyy-MM-ddTHH:mm:ss
  • yyyy-MM-dd HH:mm:ss
  • yyyy-MM-ddTHH:mm
  • yyyy-MM-dd HH:mm

Add for ‘Today’ at a specific time:

  • HH:mm:ss
  • HH:mm

Prefix with ‘T’ to add for a time only:

  • THH:mm:ss
  • THH:mm :::

Response Codes

CodeMessageInformation
0null
2error

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=JobSave&JobType=dog+walking&JobRef=AGCTEST1&JobDescription=job+description+goes+here&ContactId=7348490