DELETE /api/:space/achievements/:id

Description:

Delete an achievement from the CompetitionLabs system for a given achievements identifier.

All deleted achievements are archived

Resource URL:

https://<apphost>.competitionlabs.com/api/<your-space-name>/achievements/<achievementId>

Request header

KeyValueRequired
X-API-KEY
Your unique API keyYes
Content-Type
application/jsonYes

Request URL parameter

Parameter
Type
Required
Description
space
StringYesThis is the space name which is linked to the account
id
StringYesAchievements identifier retrieved from GET Achievements resource

EXAMPLE

Request
curl
--header "X-API-KEY: <your-api-key>"
--header "Content-Type: application/json"
--request DELETE https://app.competitionlabs.com/api/tester/achievements/uD7RVWUBeag0_3vrPam5
Response
Response Header: 200

ERROR CODES

CodeHTTP StatusDescriptionExample
1007404A record with requested id was not found
Error Response 404
{
    "errors": [
        {
            "message": "A record with requested id was not found.",
            "code": 1007,
            "status": 404
        }
    ]
}