Skip to main content

Update business information

POST 

https://api.powerapi.com/api/v2/businesses/:business_id

This endpoint lets you access to the information of a business. You need to have WRITE access on this business. Only indicated values are taken into account (it works like a PATCH). You cannot push fields disabled for your org.

Request

Responses

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
curl -L 'https://api.powerapi.com/api/v2/businesses/:business_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"created": 1409925979.5,
"modified": 1561335111.681374,
"code": "CS-75019",
"status": "open",
"org_id": 42,
"group_id": 23,
"name": "Corner shop",
"address_full": "12 bis rue du coquelicot",
"address2": "string",
"city": "Paris",
"zipcode": "75019",
"region": "Ile-de-France",
"country": "FR",
"default_lang": "fr",
"description_short": "lorem ipsum",
"description_long": "lorem ipsum dolor sit amet",
"categories": [
"gcid:restaurant"
],
"website_url": "https://www.corner-shop.co/",
"facebook_url": "https://www.facebook.com/the-corner-shop",
"twitter_url": "https://www.twitter.com/the-corner-shop",
"google_location_id": "string",
"google_place_id": "ChIJNxGL4jNt5kcRJKZ-n5fwmDQ",
"facebook_page_id": "string",
"national_identification_number": "string",
"logo_url": "string",
"photos": {
"LOGO": "string",
"primary": "string",
"secondary": [
"string"
],
"MENU": [
"string"
]
},
"lat": -3.585993,
"long": 47.870341,
"subscriptions": {
"presence_management": {
"active": true
},
"review_management": {
"active": true
},
"review_booster": {
"active": true
},
"messages": {
"active": true
}
}
}'
Request Collapse all
Base URL
https://api.powerapi.com
Auth
Parameters
— pathrequired
Body required
{
  "created": 1409925979.5,
  "modified": 1561335111.681374,
  "code": "CS-75019",
  "status": "open",
  "org_id": 42,
  "group_id": 23,
  "name": "Corner shop",
  "address_full": "12 bis rue du coquelicot",
  "address2": "string",
  "city": "Paris",
  "zipcode": "75019",
  "region": "Ile-de-France",
  "country": "FR",
  "default_lang": "fr",
  "description_short": "lorem ipsum",
  "description_long": "lorem ipsum dolor sit amet",
  "categories": [
    "gcid:restaurant"
  ],
  "website_url": "https://www.corner-shop.co/",
  "facebook_url": "https://www.facebook.com/the-corner-shop",
  "twitter_url": "https://www.twitter.com/the-corner-shop",
  "google_location_id": "string",
  "google_place_id": "ChIJNxGL4jNt5kcRJKZ-n5fwmDQ",
  "facebook_page_id": "string",
  "national_identification_number": "string",
  "logo_url": "string",
  "photos": {
    "LOGO": "string",
    "primary": "string",
    "secondary": [
      "string"
    ],
    "MENU": [
      "string"
    ]
  },
  "lat": -3.585993,
  "long": 47.870341,
  "subscriptions": {
    "presence_management": {
      "active": true
    },
    "review_management": {
      "active": true
    },
    "review_booster": {
      "active": true
    },
    "messages": {
      "active": true
    }
  }
}
ResponseClear

Click the Send API Request button above and see the response here!