The API documentation provides you with REST API information on how to preview, create, edit, and delete Achievements, Competitions, Contests, Rewards, etc. within your space in the CompetitionLabs environment, using the APP API and Public API.
APP API and Public API are different and show different information. Public API is used for public information for players, while APP API is for back-end administration, so sensitive data or information is not exposed.
Any URL part that contains a word on a path starting with a colon ( : ) or bracketed symbol, e.g. less than ( < ), greater than ( > ) or () is a variable or parameter that needs to be replaced with values you select.
Situation: You want to get a specific Achievement using its Id.
What you need to do: The documentation tells you to use the following path to do so:
JSON example:
{
"jsonClass": "Achievement",
"name": "test",
"accountId": "QmTaPGUBsZyUBGOR_u9A",
"description": "test",
}
--header "X-API-KEY: "
--header "Content-Type: application/json"
xhr.setRequestHeader("Content-Type", "application/json");