Business API v3:
- PUT Details
⚠️ 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).
Updated a single business in the localtunity network with id equal to the :id parameter. Only referenced fields will be updated.
Example
- Resource URL: https://api.takeoutnearby.com/
curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" https://api.takeoutnearby.com/v3/business/{business_id}/details
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 to update. |
Fields | |
| name: | (string, 255 characters max, optional) The name of the business |
| phone: | (string, 20 characters max, optional) The phone number of the business |
| website: | (string, 255 characters max, optional) The website of the business |
| description: | (string, 255 characters max, optional) The description of the business |
| email: | (string, 255 characters max, optional) The primary email of the business |
| is_multi_location: | (boolean, 0|1, optional) Defaults to false. Determines if Multi-Location Viewing logic is used when displaying the business to a frontend user. When turned on, Primary location logic will not be used, the location displaed on the business app homepage will be determiend by the location_id provided in the url. Proper url structure for multi_location businesses homepages: https://localtunity.com/:business/:location_id |
| monday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Mondays. |
| monday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Mondays. |
| tuesday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Tuesdays. |
| tuesday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Tuesdays. |
| wednesday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Wednesdays. |
| wednesday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Wednesdays. |
| thursday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Thursdays. |
| thursday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Thursdays. |
| friday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Fridays. |
| friday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Fridays. |
| saturday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Saturdays. |
| saturday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Saturdays. |
| sunday_opening_hours: | (string, See the note about time parameters, optional) The time that the business opens up on Sundays. |
| sunday_closing_hours: | (string, See the note about time parameters, optional) The time that the business closes on Sundays. |