PUT /places/{place_id}
¶ Places - Update
The Places endpoint allows updating the home and work addresses from an Uber user’s profile.
¶ Resource
PUT /v1.2/places/{place_id}
¶ Authorization
OAuth 2.0 user access token with places
scope.
¶ Path Parameters
Name | Type | Description |
---|---|---|
place_id |
string |
The name of the place to update. Only home and work are acceptable. |
¶ PUT Body Parameters
Name | Type | Description |
---|---|---|
address |
string |
The address of the place that should be tied to the given place_id |
¶ Example Request
Replace <TOKEN>
in the example below with a user access token
curl -H 'Authorization: Bearer <TOKEN>' \
-X PUT \
-H 'content-type: application/json' \
-d '{
"address": "685 Market St, San Francisco, CA 94103, USA"
}' \
https://api.uber.com/v1.2/places/home
¶ Response
Status-Code: 200 OK
{
"address": "685 Market St, San Francisco, CA 94103, USA"
}
Name | Type | Description |
---|---|---|
address |
string |
Fully qualified address of the location that was saved to place_id. This will likely not be identical to the address in the request and should be checked to confirm it is the intended location. |
¶ HTTP Error Codes
Below is a list of the HTTP error codes this endpoint could return.
HTTP Status | Code | Description |
---|---|---|
401 | unauthorized | The supplied bearer token is invalid. |
404 | unknown_place_id | The given place id does not exist. |
422 | invalid_address | Could not find location for provided address. |