Admin APIs/Linking (Vehicle ↔ User ↔ Driver)
Link User → Vehicle
POST
/admin/linkusers/: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/linkusers/:vehicleId' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"userId": 20
}'