Perform CRUD actions for runsheet generation jobs.
Return the list of runsheet generation jobs
page | integer <int64> >= 1 Default: 1 |
per_page | integer <int64> >= 1 Default: 200 |
order | string Default: "desc" Enum: "asc" "desc" The direction of the sort |
range_start_created_at | string <date-time> Range start (inclusive) of Created At |
range_end_created_at | string <date-time> Range end (inclusive) of Created At |
{- "meta": {
- "page": 1,
- "per_page": 200
}, - "runsheet_generation_jobs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
]
}
Create a Runsheet Generation
name required | string |
strategy required | string (runsheet-strategy) Enum: "random" "exact-address-match" |
strategy_config | object (runsheet-strategy-config) |
{- "name": "My Runsheet Generation",
- "strategy": "random",
- "strategy_config": { }
}
{- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
Read an existing Runsheet Generation
generationID required | string ID of the Runsheet Generation to be read |
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
Update the Runsheet Generation
generationID required | string ID of the Runsheet Generation to be update |
name required | string |
strategy required | string (runsheet-strategy) Enum: "random" "exact-address-match" |
strategy_config | object (runsheet-strategy-config) |
{- "name": "My Runsheet Generation",
- "strategy": "random",
- "strategy_config": { }
}
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
Add Tasks to an existing Runsheet Generation
generationID required | string ID of the Runsheet Generation to be read |
Array of objects (task) |
{- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
]
}
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
Delete Task from Runsheet Generation
generationID required | string ID of the Runsheet Generation to be read |
taskID required | string ID of the Task to be delete |
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
Start Runsheet Generation Job, only can run the job once.
generationID required | string ID of the Runsheet Generation to be start |
version_rev required | string |
{- "version_rev": "0-OqQ6QSWl"
}
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Generation",
- "tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "unit_number": "404",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_time_utc": "2019-08-24T14:15:22Z",
- "start_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore"
}, - "version_rev": "1-v3gQ4E6z"
}
], - "strategy": "random",
- "strategy_config": { },
- "last_executed_at_client_time_utc": "2019-08-24T14:15:22Z",
- "last_executed_at_client_timezone": "Asia/Singapore",
- "last_executed_at_server_time": "2019-08-24T14:15:22Z",
- "current_status": "new",
- "current_status_updated_at": "2019-08-24T14:15:22Z",
- "statuses": [
- {
- "status": "new",
- "set_at_utc": "2019-08-24T14:15:22Z"
}
], - "error": "",
- "version_seq": 0,
- "version_rev": "0-OqQ6QSWl"
}
Check Runsheet Generation Result
generationID required | string ID of the Runsheet Generation to be read |
{- "total_runsheets_counted": 0,
- "total_runsheets_created": 0,
- "total_runsheets_failed": 0,
- "total_tasks_counted": 0,
- "total_tasks_added": 0,
- "total_tasks_failed": 0,
- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet_generation_id": "016a0e2c-7b9a-4c32-bb0f-e0c714f59ec7",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z"
}
Create Runsheet Generation Result
generationID required | string ID of the Runsheet Generation to be read |
total_runsheets_counted required | number |
total_runsheets_created required | number |
total_runsheets_failed required | number |
total_tasks_counted required | number |
total_tasks_added required | number |
total_tasks_failed required | number |
id | string <uuid> |
runsheet_generation_id required | string <uuid> |
start_time required | string <date-time> |
end_time required | string <date-time> |
{- "total_runsheets_counted": 0,
- "total_runsheets_created": 0,
- "total_runsheets_failed": 0,
- "total_tasks_counted": 0,
- "total_tasks_added": 0,
- "total_tasks_failed": 0,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet_generation_id": "016a0e2c-7b9a-4c32-bb0f-e0c714f59ec7",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z"
}
{- "total_runsheets_counted": 0,
- "total_runsheets_created": 0,
- "total_runsheets_failed": 0,
- "total_tasks_counted": 0,
- "total_tasks_added": 0,
- "total_tasks_failed": 0,
- "server_time": "2019-08-24T14:15:22Z",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet_generation_id": "016a0e2c-7b9a-4c32-bb0f-e0c714f59ec7",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z"
}
Update Runsheet Generation Job status to IN PROGRESS. Current job status must be queued
generationID required | string ID of the Runsheet Generation to be read |
{- "message": "Successfully update status to in progress"
}
Update Runsheet Generation Job status to DONE. Current job status must be in progress
generationID required | string ID of the Runsheet Generation to be read |
{- "message": "Successfully update status to done"
}
Update Runsheet Generation Job status to FAILED. Current job status must be in progress
generationID required | string ID of the Runsheet Generation to be read |
error required | string |
{- "error": "Error creating runsheet"
}
{- "message": "Successfully update status to failed"
}