Admin APIs/Linking (Vehicle ↔ User ↔ Driver)
Unlink User from Vehicle
POST
/admin/unlinkusers/:vehicleIdBearer token required
ADMINContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
vehicleId | number | Required |
Request Example
JSON
{
"userId": 20
}Code Examples
curl -X POST 'https://<your-domain>:3001/admin/unlinkusers/:vehicleId' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"userId": 20
}'