Updates a truck driver record

Supported Formats

json

Errors

Code Description
400 Bad Request.
404 Resource Not Found.
500 Internal Server Error.

Examples

curl "https://app.octopi.co/api/v1/truck_drivers/:number.json" -d '{"truck_driver": { "first_name": "Juan", "last_name": "Torres", "license_number": "new_license_number" }}' -X PATCH -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOURTOKEN"

Params

Param name Description
first_name
required

The first name of the driver.

Validations:

  • Must be a String

last_name
required

The last name of the driver.

Validations:

  • Must be a String

license_number
required

The license number of the driver or N/A if not available.

Validations:

  • Must be a String

number
optional

A unique number used by the terminal to identify the driver.

Validations:

  • Must be a String

trucking_company_name
optional

Name of the trucking company for the driver.

Validations:

  • Must be a String