Perform CRUD actions for runsheet broadcast plan.
Return the list of plans
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
}, - "plans": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}
]
}
Create a RB Plan
name | string |
{- "name": "My Runsheet Broadcast Plan"
}
{- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "server_time": "2019-08-24T14:15:22Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}
Read an existing plan
planID required | string ID of the plan to be read |
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}
Update an existing plan
planID required | string ID of the plan to be update |
name | string |
{- "name": "My Runsheet Broadcast Plan"
}
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}
Add Pair to an existing plan
planID required | string ID of the plan to be read |
Array of objects |
{- "pairs": [
- {
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
]
}
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}
Only designated driver is authorized.
planID required | string ID of the plan which owns the pair |
pairID required | string ID of the pair to be read |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
Delete Pair from an existing plan
planID required | string ID of the plan to be read |
pairID required | string ID of the pair to be delete |
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}
Only designated driver is authorized.
planID required | string ID of the plan which owns the pair |
pairID required | string ID of the pair to be accept |
{- "message": "Successfully recorded acceptance of runsheet with ID: xxx-xxxxx-xxx-xx"
}
Only designated driver is authorized.
planID required | string ID of the plan which owns the pair |
pairID required | string ID of the pair to be reject |
{- "message": "Successfully recorded rejection of runsheet with ID: xxx-xxxxx-xxx-xx"
}
Start Plan
planID required | string ID of the plan to be executed |
{- "server_time": "2019-08-24T14:15:22Z",
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet Broadcast Plan",
- "pairs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "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",
- "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",
- "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"
}, - "driver_price": 500000,
- "currency": "SGD",
- "org_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "version_rev": "0-xxxxxxxx"
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}
], - "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",
- "version_seq": 0,
- "version_rev": "0-vs6EOoGd"
}