Business API v3:

- POST Image

⚠️ 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).

Uploads an image to the selected business.

Example

- Resource URL: https://api.takeoutnearby.com//v3/business/{business_id}/image

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer {access_token}" -F "image=@/path/to/image.jpg" https://api.takeoutnearby.com/v3/business/{business_id}/image

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 upload the image to.

Fields

type: (string, required) The type of image to upload. Must be "logo" or "gallery".
image: (file, required) The file on your local filesystem of the image to upload. The image must be under 5MB and have a minimum height & width of 400px.

Response 200 Status Code

                    {"status":"success", "result":{"id":"5569554","images":[{"id":"4328549","url":"https:\/\/localtunity.com\/images\/business\/5569554\/4328549.jpg"}]}}