Uber API: v1.0.0

/products
GET
/products
POST
/products/:product_id
PATCH
/products/:product_id
PUT
/products/:product_id
DELETE

/products

Products - Get all or some

Get all products with all attributes.

Parameters

Name Required Located in Type Description
category false query string () Filter by product category (e.g., "gizmo")

Success 200 (Object[])

Field Type Description
product_id string Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles.
description string Description of product.
display_name string Display name of product.
category string Category of product. For example, "gizmo".

Error 500 (Object)

Field Type Description
code integer
message string
fields string

Products - Create one

Create a product with the provided attributes.

Parameters

Name Required Located in Type Description
description true body string () Description of product.
display_name true body string () Display name of product.
category true body string () Product category.

Success 200 (Object)

Field Type Description
product_id integer New product's id.

Error 500 (Object)

Field Type Description
code integer
message string
fields string
/products/:product_id

Product patch

Update a subset of a product's attributes.

Parameters

Name Required Located in Type Description
product_id true URL integer () Product ID.
description false body string () Description of product.
display_name false body string () Display name of product.
category false body string () Product category.

Success 200 (Object)

Field Type Description
product_id integer Updated product's id.

Error 500 (Object)

Field Type Description
code integer
message string
fields string

Product put

Update a all of a product's attributes.

Parameters

Name Required Located in Type Description
product_id true URL integer () Product ID.
description true body string () Description of product.
display_name true body string () Display name of product.
category true body string () Product category.

Success 200 (Object)

Field Type Description
product_id integer Updated product's id.

Error 500 (Object)

Field Type Description
code integer
message string
fields string

Product delete

Delete a product with a give ID.

Parameters

Name Required Located in Type Description
product_id true URL integer () Product ID.

Success 200 (Object)

Field Type Description
success boolean "true" for successful delete.

Error 500 (Object)

Field Type Description
code integer
message string
fields string