Create a resource
Create a new resource (required scope resources:write)
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
Possible values: non-empty
The full name of the resource
The unique identifier of the resource's group
The mobile telephone number of the resource
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[] nullable
The resources working hours / shifts, expressed relative to timeZoneId
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[] nullable
Custom fields associated with the resource
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
- 201
- 400
- 403
- 422
- 500
Created
Schema
Identifier of the newly created record
{
"id": 0
}
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"
}
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"
}