API by router
Jobs shifts
List Jobs
Path Parameters
instance_idInstance Id
Format
uuidQuery Parameters
customer_idCustomer Id
Format
uuidstatus?Status
site?Site
limit?Limit
Default
100Range
1 <= value <= 500offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/jobs?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&site=string&limit=100&offset=0"{
"has_more": true,
"items": [
null
],
"limit": 0,
"offset": 0,
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Create Job
Create a job. Auth: Bearer proxy key.
Path Parameters
instance_idInstance Id
Format
uuidclient_name?Client Name
customer_idCustomer Id
Format
uuiddescription?Description
job_ref?Job Ref
notes?Notes
requirements?Requirements
scheduled_date?Scheduled Date
site?Site
titleTitle
Length
length <= 500work_type?Work Type
Response Body
curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/jobs" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "title": "string" }'{
"client_name": "string",
"completed_date": "2019-08-24",
"created_at": "2019-08-24T14:15:22Z",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"job_ref": "string",
"requirements": {},
"scheduled_date": "2019-08-24",
"site": "string",
"status": "string",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"work_type": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Update Job
Path Parameters
instance_idInstance Id
Format
uuidjob_idJob Id
Format
uuidclient_name?Client Name
description?Description
notes?Notes
requirements?Requirements
site?Site
status?Status
title?Title
work_type?Work Type
Response Body
curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/jobs/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"client_name": "string",
"completed_date": "2019-08-24",
"created_at": "2019-08-24T14:15:22Z",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"job_ref": "string",
"requirements": {},
"scheduled_date": "2019-08-24",
"site": "string",
"status": "string",
"title": "string",
"updated_at": "2019-08-24T14:15:22Z",
"work_type": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}List Shifts
Path Parameters
instance_idInstance Id
Format
uuidQuery Parameters
customer_idCustomer Id
Format
uuidstatus?Status
date_from?Date From
date_to?Date To
limit?Limit
Default
100Range
1 <= value <= 500offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts?customer_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&status=string&date_from=2019-08-24&date_to=2019-08-24&limit=100&offset=0"{
"has_more": true,
"items": [
null
],
"limit": 0,
"offset": 0,
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Create Shift
Path Parameters
instance_idInstance Id
Format
uuidcustomer_idCustomer Id
Format
uuiddateDate
Format
dateend_timeEnd Time
Format
timeheadcount?Headcount
Default
1Range
1 <= valuejob_id?Job Id
rate_per_hour?Rate Per Hour
requirements?Requirements
site?Site
start_timeStart Time
Format
timeResponse Body
curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts" \ -H "Content-Type: application/json" \ -d '{ "customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e", "date": "2019-08-24", "end_time": "14:15:22Z", "start_time": "14:15:22Z" }'{
"created_at": "2019-08-24T14:15:22Z",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"date": "2019-08-24",
"end_time": "14:15:22Z",
"filled_count": 0,
"headcount": 0,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_filled": true,
"job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
"rate_per_hour": 0,
"requirements": {},
"site": "string",
"start_time": "14:15:22Z",
"status": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Update Shift
Update shift details. Auth: Bearer proxy key.
Path Parameters
instance_idInstance Id
Format
uuidshift_idShift Id
Format
uuiddate?Date
end_time?End Time
headcount?Headcount
rate_per_hour?Rate Per Hour
requirements?Requirements
site?Site
start_time?Start Time
status?Status
Response Body
curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"created_at": "2019-08-24T14:15:22Z",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"date": "2019-08-24",
"end_time": "14:15:22Z",
"filled_count": 0,
"headcount": 0,
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"is_filled": true,
"job_id": "453bd7d7-5355-4d6d-a38e-d9e7eb218c3f",
"rate_per_hour": 0,
"requirements": {},
"site": "string",
"start_time": "14:15:22Z",
"status": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Assign Person
Path Parameters
instance_idInstance Id
Format
uuidshift_idShift Id
Format
uuidchannel?Channel
person_idPerson Id
Format
uuidResponse Body
curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts/497f6eca-6276-4993-bfeb-53cbbbba6f08/assign" \ -H "Content-Type: application/json" \ -d '{ "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550" }'{
"calendar_link_sent": true,
"channel": "string",
"contacted_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
"responded_at": "2019-08-24T14:15:22Z",
"shift_id": "f15914ca-a3fc-41f9-a948-5ac849d2a017",
"status": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}List Assignments
Path Parameters
instance_idInstance Id
Format
uuidshift_idShift Id
Format
uuidQuery Parameters
limit?Limit
Default
100Range
1 <= value <= 500offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts/497f6eca-6276-4993-bfeb-53cbbbba6f08/assignments?limit=100&offset=0"{
"has_more": true,
"items": [
null
],
"limit": 0,
"offset": 0,
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}Update Assignment
Path Parameters
instance_idInstance Id
Format
uuidshift_idShift Id
Format
uuidassignment_idAssignment Id
Format
uuidcalendar_link_sent?Calendar Link Sent
channel?Channel
status?Status
Response Body
curl -X PATCH "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts/497f6eca-6276-4993-bfeb-53cbbbba6f08/assignments/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{
"calendar_link_sent": true,
"channel": "string",
"contacted_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
"responded_at": "2019-08-24T14:15:22Z",
"shift_id": "f15914ca-a3fc-41f9-a948-5ac849d2a017",
"status": "string"
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}List Jobs Dashboard
AuthorizationBearer <token>
In: header
Path Parameters
customer_idCustomer Id
Format
uuidQuery Parameters
status?Status
limit?Limit
Default
100Range
1 <= value <= 500offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/jobs?status=string&limit=100&offset=0"{
"has_more": true,
"items": [
null
],
"limit": 0,
"offset": 0,
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}List Shifts Dashboard
AuthorizationBearer <token>
In: header
Path Parameters
customer_idCustomer Id
Format
uuidQuery Parameters
date_from?Date From
date_to?Date To
limit?Limit
Default
100Range
1 <= value <= 500offset?Offset
Default
0Range
0 <= valueResponse Body
curl -X GET "https://loading/v1/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/shifts?date_from=2019-08-24&date_to=2019-08-24&limit=100&offset=0"{
"has_more": true,
"items": [
null
],
"limit": 0,
"offset": 0,
"total": 0
}{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}