Runsheet Broadcast Record Service API (1.0.0)

A record of statuses and results of runsheet broadcasts

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

Retrieve broadcast record of the specified broadca

Retrieve broadcast record of the specified broadcast pair

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

pair_id
required
string <uuid>

ID of the pair to retrieve broadcast records of

Responses

Response samples

Content type
application/json
{
  • "pair_record": {
    }
}

Retrieve the list of broadcast records of the spec

Retrieve the list of broadcast records of the specified broadcast plan.

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

Responses

Response samples

Content type
application/json
{
  • "pair_records": [
    ]
}

Record the system creation of the runsheet broadcast pair

Only Runsheet Broadcast Record Worker is authorized.

Authorizations:
Request Body schema: application/json
object (pair)
object (plan)
happened_at_utc
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "pair": {
    },
  • "plan": {
    },
  • "happened_at_utc": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "message": "Successfully recorded pair creation."
}

Record the system deletion of the runsheet broadcast plan

Only Runsheet Broadcast Record Worker is authorized.

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

pair_id
required
string <uuid>

ID of the pair which broadcast record needs to be updated

Request Body schema: application/json
happened_at_utc
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "happened_at_utc": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "message": "Successfully recorded pair deletion."
}

Record the system broadcast of the runsheet broadcast pair

Only Runsheet Broadcast Plan Worker is authorized.

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

pair_id
required
string <uuid>

ID of the pair which broadcast record needs to be updated

Request Body schema: application/json
happened_at_utc
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "happened_at_utc": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "message": "Successfully recorded pair broadcast."
}

Record the driver acceptance of the runsheet broadcast pair

Only Runsheet Broadcast Plan Worker is authorized.

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

pair_id
required
string <uuid>

ID of the pair which broadcast record needs to be updated

Request Body schema: application/json
happened_at_utc
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "happened_at_utc": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "message": "Successfully recorded acceptance by driver."
}

Record the driver rejection of the runsheet broadcast pair

Only Runsheet Broadcast Record Worker is authorized.

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

pair_id
required
string <uuid>

ID of the pair which broadcast record needs to be updated

Request Body schema: application/json
happened_at_utc
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "happened_at_utc": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "message": "Successfully recorded rejection by driver."
}

Record the system rejection of the runsheet broadcast plan

Only Runsheet Broadcast Record Worker is authorized.

Authorizations:
path Parameters
plan_id
required
string <uuid>

ID of the plan of the pair

pair_id
required
string <uuid>

ID of the pair which broadcast record needs to be updated

Request Body schema: application/json
reason
string or null
happened_at_utc
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "reason": "string",
  • "happened_at_utc": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "message": "Successfully recorded rejection by system."
}

Get unhandled pairs list for a driver

Only drivers are authorized.

Authorizations:

Responses

Response samples

Content type
application/json
{
  • "pairs": [
    ]
}