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*
Typestring
Required
Pattern"[1-9][0-9]*"

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",
"isRequestableByFoodsaver": false,
"createdAt": "string",
"updatedAt": "string"
}

Responses

Success

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python