Three lines

Uber

Developers

[API] Upload Document

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.

Uploads a new document for a pre-created vehicle.

Resource

/v1/solutions/vehicles/:vehicle_id/documents

HTTP Method

POST

Access Method

Client Credentials

Required scopes

solutions.vehicles.write

Example Request
curl -i -X POST "https://api.uber.com/v1/solutions/vehicles/:vehicle_id/documents" \
-H "Authorization: Bearer <TOKEN>" -H "Content-Type: application/json" \
-d '{
    "document_expiry_date":"2018-01-15",
    "document_type":"VehicleInsurance",
    "content":"content",
    "content_type":"content_type",
    "type_id": "<type_id>"
}'

Request Path Parameters
Name Type Description
vehicle_id string Vehicle ID which was returned in the create vehicle response.

Request Body Fields
Name Type Description
document_type string Global type of the document.
Possible values- [VehicleInsurance, VehicleInspection, VehicleRegistration, TEST_REQUIRED_DOCUMENT(for testing in Sandbox environment)]
document_expiry_date (optional) string Formatted date (YYYY-MM-DD) when the document will expire
content Byte Array Base64 Encoded file content
content_type string Content type of the file.
Possible values- [‘bmp’, ‘jpg’, ‘jpeg’, ‘png’, ‘pdf’, ‘doc’, ‘docx’]
type_id (optional) string Global type id of the document.
Identify the document to upload when multiple documents share the same document_type

Example Response
Status-code: 204 No Content
{
}

Endpoint Specific Errors
Http Status Code Code
400 bad_request
401 unauthorized
403 forbidden (client does not have permission to upload a document for the given vehicle)
404 resource_not_found (vehicle not found)
429 rate_limited
500 internal_server_error
503 service_unavailable

Uber

Developers
© 2023 Uber Technologies Inc.