Skip to content

Accept every confident suggestion

POST
/products/review/accept-all
curl --request POST \
--url https://example.com/products/review/accept-all \
--header 'Content-Type: application/json' \
--cookie bottle.session_token=<bottle.session_token> \
--data '{ "minimumConfidence": 1 }'

Accepts each pending suggestion at or above the confidence given, 0.8 unless said otherwise, exactly as if each had been accepted by hand. Anything less sure, and anything that cannot be applied, is left waiting.

Media typeapplication/json
object
minimumConfidence
number
<= 1
Examplegenerated
{
"minimumConfidence": 1
}

How many were accepted and how many are still waiting

Media typeapplication/json
object
accepted
required
integer
skipped
required
integer
Examplegenerated
{
"accepted": 1,
"skipped": 1
}

Not signed in

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Not a member, or without the permission this needs

Media typeapplication/json
object
error
required
string
message
required
string
Example
{
"error": "not_found",
"message": "Customer not found"
}

Validation failed

Media typeapplication/json
object
error
required
string
Allowed values: validation
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{
"error": "validation",
"issues": [
{
"path": "email",
"message": "Invalid email"
}
]
}