Update a resource
Update the details of a single resource (required scope resources:write)
Path Parameters
Header Parameters
The customer identifier
Request Body
- Array [
- sunday
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- ]
- Array [
- ]
The internal reference of the resource - should usually be unique
Optional: Omit to retain current value
The full name of the resource
Optional: Omit to retain current value
The unique identifier of the resource's group
Optional: Omit to retain current value
The email address of the resource
Optional: Omit to retain current value
The mobile telephone number of the resource
Optional: Omit to retain current value
The id of the timezone that the resource operates in
Optional: Omit to retain current value
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
The fuel card number associated to the resource
Optional: Omit to retain current value
The number associated to the resources business key
Optional: Omit to retain current value
The number associated to the resources private key
Optional: Omit to retain current value
The tachograph driver card number associated to the resource
Optional: Omit to retain current value
Indicates whether tracking data should be collected for this resource
Optional: Omit to retain current value
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
Possible values: [sunday
, monday
, tuesday
, wednesday
, thursday
, friday
, saturday
]
Possible values:
The 24H format time of day that the resource starts their shift (hh:mm)
The 24H format time of day that the resource stops their shift (hh:mm)
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
The unique identifier of the associated custom field definition
The value of this custom field. If set to null, any existing value will be unset
- 204
- 400
- 403
- 404
- 422
- 500
No Content
Bad Request
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Forbidden
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Not Found
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Client Error
Schema
- Array [
- ]
errors object
property name* string[]
string
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"errors": {},
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Server Error
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}