Description:
Retrieve an achievement or a list of achievements from CompetitionLabs database using the POST method.
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/achievements/post
Request header
Key | Value | Required |
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameter
Parameter | Type | Required | Description |
---|---|---|---|
space | String | Yes | This is the space name which is linked to the account |
Additional Query String Parameters
You can use the POST body parameters along with "_skip", "_limit" and "_sortByFields" generic parameters.
Post body parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | String | Optional | Name of the achievement |
description | String | Optional | Description of the achievement |
initialState | Integer | Optional | Informs the state of the achievement. Acceptable values are 1 or 0 |
icon | String | Optional | Icon to display for Achievement |
ruleSets | Array [Object] | Optional | A list of Rule sets |
deprecated | Boolean | Optional | True means that the Achievement is deleted and archived |
dependantOn | Array [Object] | Optional | An Achievement link model |
minimumShouldMatch | Integer | Optional | The minimum value of the participants that will participate in the achievement |
scheduling | Object | Optional | A module of Scheduling |
achievementLiveStatus | String | Optional | A status of the Achievement in live mode, eg. Draft or Live |
category | Array [String] | Optional | Categorisation of the Achievements. A list of String |
memberGroups | Array [String] | Optional | A group of members that can receive the Achievement. A list of String |
metadata | Array [Object] | Optional | A list of MetaData |
created | DateTime | Optional | ISO8601 timestamp for when an achievement was created. All records are stored in UTC time zone. |
id | String | Optional | Achievement identifier retrieved from GET Achievements resource |
translations | Object | Optional | ?translations=search_word (more extended search of translation involves a language that your space supports example: ?translations.eng.fieldName=search_word) |
EXAMPLE
ERROR CODES
Code | HTTP Status | Description | Example |
---|---|---|---|
1007 | 404 |
| |
404 | The Request URL is incorrect | ||
401 | The X-API-KEY is missing |