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