Last updated
Last updated
GET
GetChallengeCategoriesThe GetChallengeCategories
retrieves a list of all challenge categories available in the system. The categories are filtered based on the language provided in the request header.
X-ClientId and X-Message are only required with V1 API.
The API returns a list of category
objects. Each category
includes the ID and name of the challenge category.
Response Fields:
result
(List): A list of categories.
Id
(integer): The unique identifier of the category.
Name
(string): The name of the category in the requested language.
Category: Category information of the challenge.
Notes
If no categories match the language criteria, the API returns an empty list, indicating that no categories were found for the requested language.
No specific error handling is required, as the method returns a successful response even when no categories are found. The response is consistent in format and includes a meaningful message.
Attribute | Type | Options | Description |
---|---|---|---|
Property | Type | Description |
---|---|---|
X-ClientId
Provided Client Id.
X-Message
Provided encrypted message.
Accept-language
Selected language for response.
Id
Unique identifier of the category.
Name
Name of the category.