Get a resource
Retrieve the details of a single resource (required scope resources:read)
Path Parameters
Possible values: >= 1
The unique identifer of the resource
Header Parameters
The customer identifier
- 200
- 400
- 403
- 404
- 500
Success
Schema
- Array [
- sunday
- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- ]
- Array [
- boolean: Indicates a boolean field (Example: "false")
- integer: Indicates an integer numeric field (Example: "1001")
- decimal: Indicates a floating point numeric field (Example: "1.42")
- text: Indicates an editable text field (Example: "Purple")
- list: Indicates a field with a single value from a predefined list of options (Example: "Purple")
- statement: Indicates a text field that cannot be edited. The value is always equal to the default value (Example: "By signing this you agree to the following...")
- date: Indicates a date field, which will be represented as an RFC3339 formatted date string. The default value is not supported for this type and will always be null (Example: "2024-01-31")
- note: Indicates a multiline, editable text field. Lines are seperated with a line feed character (Example: "This is a note.")
- time: Indicates a time field, formatted as HH:mm. The default value is not supported for this type and will always be null (Example: "10:30")
- systemList: Indicates the ID of a related resource, vehicle or web user (Example: "228007")
- resource
- vehicle
- webUser
- ]
The unique identifier of the resource
The UTC timestamp of when this resource was created
The internal reference of the resource - should usually be unique
The full name of the resource
The unique identifier of the resource's group
The name of the resource's group
The mobile telephone number of the resource
The id of the timezone that the resource operates in
The maximum number of kilometres the resource will travel from start location (as crow flies)
The fuel card number associated to the resource
The number associated to the resources business key
The number associated to the resources private key
The tachograph driver card number associated to the resource
Indicates whether tracking data should be collected for this resource
Indicates whether out of working hour tracking data is private
workingHours object[]
The resources working hours / shifts, expressed relative to timeZoneId
Possible values: [sunday
, monday
, tuesday
, wednesday
, thursday
, friday
, saturday
]
Possible values:
The UTC 24H format time of day that the resource starts their shift (hh:mm)
The UTC 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
startAtLocation object
Represents a geographical location
Latitude of the center of the location
Longitude of the center of the location
customFields object[]
Custom fields associated with the resource
The unique identifier of the associated custom field definition
The current value set for the custom field
definition object
Represents the definition of a custom field
The caption of a custom field
Possible values: [boolean
, integer
, decimal
, text
, list
, statement
, date
, note
, time
, systemList
]
The type of the custom field. New field types may be added in the future, so integrations should be resilient to this
Possible values:
Shows the possible values for a list type custom field. Value will be null if type is not list
Indicates if the field is required in the UI. This is NOT enforced in the API
Indicates if the field is editable
The default value of a custom field. Formatted in accordance with the rules of the field type
systemListValueMetadata object
Represents details of custom field value of type system list
A descriptive label for the specific resource, vehicle or web user that this system list value relates to
Possible values: [resource
, vehicle
, webUser
]
The type of entity used for custom field value of type system list
Possible values:
{
"id": 5514123,
"createdAt": "2022-11-29T16:50:16.0000000+00:00",
"reference": "XYZ12345",
"name": "David Smith",
"groupId": 441122,
"groupName": "Plumbers",
"mobile": "+447812 123112",
"timeZoneId": "GMT Standard Time",
"maxTravelDistance": 5,
"fuelCard": "01234567891234",
"businessKey": "1231231",
"privateKey": "414221",
"tachoCard": "DRI0RDW0000000100",
"isTracked": true,
"isTrackedOutOfHours": false,
"workingHours": [
{
"dayOfWeek": "sunday",
"start": "09:00",
"stop": "17:00",
"startAtContactId": 1241551,
"startAtLocation": {
"latitude": 51.31349,
"longitude": -0.7464233
}
}
],
"customFields": [
{
"definitionId": 5514123,
"value": "Purple",
"definition": {
"caption": "Favourite colour",
"type": "boolean",
"listOptions": [
"Red",
"Blue",
"Green",
"Purple"
],
"isRequired": true,
"isEditable": true,
"default": "10"
},
"systemListValueMetadata": {
"label": "John Doe",
"entityType": "resource"
}
}
]
}
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"
}
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"
}