Skip to content

Edit an existing achievement​

PATCH
/api/achievements/{achievementId}

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters​

Path Parameters

achievementId*
Typeinteger
Required
Minimum1

Request Body​

application/json
JSON
{
"id": 1,
"regionId": 1,
"name": "Food Hygiene Certificate",
"description": "Awarded for completing a food hygiene course",
"icon": "fas fa-hands-wash",
"validityInDaysAfterAssignment": "356",
"visibilityType": 3,
"duplicateMode": 0,
"createdAt": "string",
"updatedAt": "string"
}

Responses​

Success

Playground​

Authorization
Variables
Key
Value
Body

Samples​

cURL
JavaScript
PHP
Python