Forget part of the profile
/v1/shoppers/me/forgetTakes something back: a note or a liked style by its id from the
profile, every size kept for a brand, or all their body measurements.
Send one or several in a call.
To take back a single reaction rather than a whole style, record an
undo signal.
Headers
1The shopper's profile token, from auth/start, auth/verify or any call that made a profile.
Request body
application/jsonrequiredA note's id.
A liked style's id, from profile.styles.
A brand exactly as it is kept in profile.sizes. Every size kept for it is forgotten.
true forgets every body measurement and the fit preference.
Response
A profile in words. Never the vectors behind it.
true once the shopper confirmed an email: the profile is theirs, lasts until they delete it, and works at every store that runs Stylor.
The confirmed email. Null on an anonymous profile.
Styles learnt from their reactions, strongest first. At most four per slot.
Kinds of whole look they liked, strongest first.
Styles they passed on often enough to say.
Labels they clearly lean toward, read from their reactions, never said by them ("colour: black"). At most 8.
Labels they clearly lean away from. At most 8.
What they told you, kept with remember.
Sizes they wear, by brand or store.
Their body measurements in centimetres, and how they like things to fit. Null when none are kept.
Reactions learnt from.
Errors
26Every error is JSON with a single error string unless noted. Match on the status code; the message is for humans.
Request body must be valid JSON.A body was sent and could not be parsed as JSON.
Request body must be a JSON object.A body was sent and parsed to something other than a JSON object.
Send the shopper's token in x-shopper-token, or start a profile (auth/start).No X-Shopper-Token was sent.
That shopper token is not valid here. Start a profile or sign in again.X-Shopper-Token was sent but cannot be opened with this key.
Shopper profiles are switched off for this organization.The organization turned shopper profiles off.
No such profile.The profile was deleted during the call.
Nothing to forget.None of noteId, styleId, sizeBrand was sent, and body is not true.
curl -X POST "https://stylor.ai/api/v1/shoppers/me/forget" \
-H "Authorization: Bearer $STYLOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"noteId": "a1b2c3d4"
}'{
"profile": {
"saved": false,
"email": null,
"styles": [],
"outfits": [],
"avoidStyles": [],
"likes": [],
"avoids": [],
"notes": [],
"sizes": [],
"body": null,
"signals": 0
}
}