Update businesses attributes
POSThttps://api.staging.powerapi.com/api/v2/businesses/:business_id/google/attributes
This endpoint allows you to set Google attributes for your business.
Request
Path Parameters
business_id stringrequired
- application/json
Body arrayrequired
- Array [
- ]
id stringrequired
Attribute ID
Example:
pay_debit_card
data objectrequired
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
location stringrequired
Where in the request the error occurred
Possible values: [query
, body
, response
, param
]
errors object[]required
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (auto)
Schema
statusCode integerrequired
HTTP status code
Example:
404
message string
Error message
Example:
Cannot find item
error string
Error name
Example:
Not Found
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v2/businesses/:business_id/google/attributes' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '[
{
"id": "pay_debit_card",
"data": {
"type": "BOOL",
"value": true
}
}
]'
ResponseClear