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 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

Create Product

Create a product with the provided attributes.

Parameters

Name Required Located in Type Description
description body string () Description of product.
display_name body string () Display name of product.
category 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 URL integer () Product ID.
description body string () Description of product.
display_name body string () Display name of product.
category 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 patch

Update a all of a product's attributes.

Parameters

Name Required Located in Type Description
product_id URL integer () Product ID.
description body string () Description of product.
display_name body string () Display name of product.
category 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

Delete product

Delete a product with a give ID.

Parameters

Name Required Located in Type Description
product_id 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