Skip to content

Edit the awarded achievement of a user

PATCH
/api/achievements/{achievementId}/users/{userId}

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters

Path Parameters

achievementId*
Typestring
Required
Pattern"[1-9][0-9]*"
userId*
Typestring
Required
Pattern"[1-9][0-9]*"

Request Body

application/json
JSON
{
"validUntil": null,
"notice": null
}

Responses

Success

application/json
JSON
{
"user": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"reviewer": {
"id": 0,
"name": "string",
"avatar": "string",
"isSleeping": true
},
"achievementId": 0,
"notice": "string",
"validUntil": "string",
"createdAt": "string"
}

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python