Accept every confident suggestion
POST
/products/review/accept-all
const url = 'https://example.com/products/review/accept-all';const options = { method: 'POST', headers: { cookie: 'bottle.session_token=<bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"minimumConfidence":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
minimumConfidence
number
Examplegenerated
{ "minimumConfidence": 1}Responses
Section titled “Responses”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
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}