Three lines

Uber

Developers

[API] Assign Vehicle

Privileged and Confidential This endpoint design has been confidentially shared with you. It is still under development and is subject to change without notice. Please do not share this document or API endpoint details with anyone who is not authorized to have access. For more information read about scopes.

Assigns a vehicle of the vehicle supplier to a driver.

Resource

/v1/vehicle-suppliers/vehicles/:vehicle_id/assign

HTTP Method

POST

Access Method

Client Credentials

Required scopes

vehicle_suppliers.vehicles.assignment

Example Request
curl -X POST "https://api.uber.com/v1/vehicle-suppliers/vehicles/:vehicle_id/assign" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-d '{
    "driver_id":"driver_id"
}'

Request Path Parameters
Name Type Description
vehicle_id string Vehicle ID returned from Create Vehicle response.

Request Fields
Name Type Description
driver_id string Driver ID returned from Get Driver Info response.

Example Response
Status-code: 204 No Content
{
}

Endpoint Specific Errors
Http Status Code Code Message
400 bad_request The request parameters are invalid, e.g. vehicle_id is not recognized
401 unauthorized Invalid OAuth 2.0 credentials provided
404 vehicle_not_found The vehicle is not found
404 driver_not_found The driver is not found
422 vehicle_not_active The vehicle is not active, such as missing documents, pending document approval, document rejected, vehicle is deactivated, etc.
422 driver_not_active The driver is not active, such as missing driver documents, pending background check, etc.
422 territory_mismatch The territories of the vehicle owner and the driver mismatch
429 rate_limited Number of requests exceeds allowed limit
500 internal_server_error Internal server error
503 service_unavailable Service unavailable

Uber

Developers
© 2023 Uber Technologies Inc.