Skip to main content

Change driver status

POST 

/truckers/drivers/status

Update a driver's status (active/inactive/pending).

Requirements:

  • Administrator role
  • Valid JWT authentication

Parameters:

  • status (body): Driver's new status

Status Flow:

  • pending → active: Initial approval
  • active → inactive: Temporary suspension
  • inactive → active: Reactivation
  • active → pending: Requires new validation

Request Example:

{
status: inactive,
reason: Expired license
}

Notes:

  • The system automatically records:
    • Change date
    • User who made the change
    • Reason (optional)
  • The driver is notified by email when changed to inactive

Request

Responses

Successful response returning the full details of a driver. Includes complete profile information, status, and metadata.