Skip to main content
POST
/
businesses
/
{id}
/
reviews
Create a review for a business
curl --request POST \
  --url https://api.pocketflows.com/businesses/{id}/reviews \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer": "<string>",
  "stars": 123,
  "review_text": "<string>",
  "created_at": "<string>"
}'
{
  "reviews": [
    {
      "id": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>",
      "source": "internal",
      "stars": 123,
      "review_text": "<string>",
      "customer": "<string>",
      "business": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the business

Body

application/json
stars
integer
required

The number of stars the review has

customer
string | null

The ID of the customer who wrote the review

review_text
string | null

The text of the review

created_at
string | null

The date and time the review was created in ISO 8601 format

Response

200 - application/json

A dictionary with a reviews property that contains an array of Review objects

reviews
The Review object · object[]
required

The reviews for the business

I