Set an achievement's visibility
PATCH
/me/achievements/{slug}
The holder's "Visible to: Everyone / Only me" control for one badge. default follows the badge's own visibility. When the caller wears the badge both personally and through an organization (or through two organizations), holder must say which; otherwise 409 with the list of holders.
Authorizations
BearerAuth
In the browser, authentication rides on the httpOnly session cookies set by /cognito/signin or the Google / Apple sign-in at /cognito/oauth/{provider}. For scripts and for Swagger UI testing, paste an API key (fh_live_…, created with POST /api-keys); a Cognito JWT is accepted too. Sign-in does not return a token in its body.
Type
HTTP (bearer)
Parameters
Path Parameters
slug*
The achievement's slug.
Type
Requiredstring
Request Body
application/json
JSON
{
"visibility_override": "string",
"holder": {
"type": "string",
"id": "string"
}
}
Responses
The updated award
application/json
JSON
{
"data": "string"
}