GET
GetChallengeCategories
GET
GetChallengeCategoriesOverview
The 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.
Request
Header Parameters
Attribute | Type | Options | Description |
---|---|---|---|
X-ClientId | string | Required | Provided Client Id. |
X-Message | string | Required | Provided encrypted message. |
Accept-language | string | Optional | Selected language for response. |
X-ClientId and X-Message are only required with V1 API.
Response
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.
Response Parameters
Category: Category information of the challenge.
Property | Type | Description |
---|---|---|
Id | int | Unique identifier of the category. |
Name | string | Name of the category. |
Response Sample
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.
Last updated