Skip to main content

Update a resource

Update the details of a single resource (required scope resources:write)

Path Parameters
    resourceId int64 required
Header Parameters
    Customer-Id int64 required

    The customer identifier

Request Body
    reference string

    The internal reference of the resource - should usually be unique
    Optional: Omit to retain current value

    name string

    The full name of the resource
    Optional: Omit to retain current value

    groupId int64

    The unique identifier of the resource's group
    Optional: Omit to retain current value

    email string

    The email address of the resource
    Optional: Omit to retain current value

    mobile string

    The mobile telephone number of the resource
    Optional: Omit to retain current value

    timeZoneId string

    The id of the timezone that the resource operates in
    Optional: Omit to retain current value

    maxTravelDistance int32 nullable

    The maximum number of kilometres the resource will travel from start location (as crow flies)
    Optional: Omit to retain current value or provide null to unset

    fuelCard string

    The fuel card number associated to the resource
    Optional: Omit to retain current value

    businessKey string

    The number associated to the resources business key
    Optional: Omit to retain current value

    privateKey string

    The number associated to the resources private key
    Optional: Omit to retain current value

    tachoCard string

    The tachograph driver card number associated to the resource
    Optional: Omit to retain current value

    isTracked boolean

    Indicates whether tracking data should be collected for this resource
    Optional: Omit to retain current value

    isTrackedOutOfHours boolean

    Indicates whether out of working hour tracking data is private
    Optional: Omit to retain current value

    workingHours object[]

    The resources working hours / shifts, expressed relative to timeZoneId. If this field is supplied it will overwrite any existing working hours in the resource
    Optional: Omit to retain current value

  • Array [
  • dayOfWeek DayOfWeek required

    Possible values: [sunday, monday, tuesday, wednesday, thursday, friday, saturday]

    Possible values:

    • sunday
    • monday
    • tuesday
    • wednesday
    • thursday
    • friday
    • saturday
    start time required

    The 24H format time of day that the resource starts their shift (hh:mm)

    stop time required

    The 24H format time of day that the resource stops their shift (hh:mm)

    startAtContactId int64 nullable

    The unique identifier of the contact (location) that the resource starts this shift from

  • ]
  • customFields object[]

    Custom fields associated with the resource. Omit or use an empty list to retain current values
    Optional: Omit to retain current value

  • Array [
  • definitionId int64 required

    The unique identifier of the associated custom field definition

    value string nullable

    The value of this custom field. If set to null, any existing value will be unset

  • ]
Responses

No Content

Loading...