Skip to content

Edit an existing achievement​

PATCH
/api/achievements/{achievementId}

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

Type
API Key (header: X-CSRF-Token)

Parameters​

Path Parameters

achievementId*
Type
integer
Required
Minimum
1

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​