Business API v3:
- PUT Location
⚠️ Experimental Version
This version of the API is currently in beta and may undergo changes. For production use, please consider using the current stable version (v2).
Updates a single business location in the localtunity network with id equal to the :id parameter. Only referenced fields will be updated.
Example
- Resource URL: https://api.voorheesvip.com/
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" https://api.voorheesvip.com/v3/business/{business_id}/location/{location_id}
Headers | |
| Content-Type: | (string, required) Must be "application/json" |
| Authorization: | (string, required) Bearer {access_token} |
Parameters | |
| business_id: | (integer, required) The id of the business the location belongs to. |
| location_id: | (integer, required) The id of the location to update. |
| name: | (string, 255 characters max, optional) The name of the business |
| phone: | (string, 20 characters max, optional) The phone number of the business |
| hide_phone: | (boolean, 0|1, optional) Defaults to false. Determines if the phone number is hidden from the public. |
| website: | (string, 255 characters max, optional) The website of the business for this specific location. If not provided, the business object website will be used. |
| description: | (string, 255 characters max, optional) The description of the business for this specific location. If not provided, the business object description will be used. |
Response 200 Status Code
{"status":"success", "id":"5569554","name":"Arthur Murray Boston","phone_one":"(617) 426-3335","website":"http:\/\/arthurmurrayboston.com","description":"","timezone":"America\/New_York", "slug":"amboston", "business_locations":[{"id":"4328549","name":"Arthur Murray Boston","phone_one":"(617) 426-3335", "address_one":"20 Park Plaza","address_two":"", "city":"Boston", "state":{"id":"22", "name":"Massachusetts", "initials":"MA"}, "country":{"id":"226","name":"United States","iso1_code":"US","iso3_code":"USA"}, "zip_code":"02116", "lat":"42.3514366150","lng":"-71.0688858032"},{"...":"repeat for each business location"}]}