The Mini App Center offers an API that provides endpoints for accessing and modifying data within the Platform. This article contains an overview of these endpoints.
Check the generic variables required to use the API.
Below is a summary of the available endpoints for this API:
This endpoint allows you to obtain a list of all available Platforms.
{
"data": [
{
"id": "string",
"name": "string"
},
...
]
}
If an error has occurred, it will return HTTP StatusCode 40x and the body as errors.
curl -X GET "$BASE_URL/v1/platforms" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
Pay close attention to the returned ID element that is needed for other related APIs.
This endpoint allows you to retrieve details about a specific Platform identified by its unique id.
Name |
Type |
Description |
id |
string |
Platform ID (required) |
{
"data": {
"id": "string",
"name": "string"
}
}
If an error has occurred, it will return HTTP StatusCode 40x and the body as errors.
curl -X GET "$BASE_URL/v1/platforms/{id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
This endpoint is used to create a new Platform.
{
"id": "string",
"name": "string"
}
If the creation is successful, it will return HTTP StatusCode "201 Created" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X POST "$BASE_URL/v1/platforms" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"id": "TST",
"name": "Testing"
}'
This endpoint updates an existing Platform, identified by the id.
Name |
Type |
Description |
id |
string |
Platform ID (required) |
{
"name": "string"
}
If the update is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X PUT "$BASE_URL/v1/platforms/{id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"name": "Testing"
}'
This endpoint is used to delete a Platform with a specific id.
Name |
Type |
Description |
id |
string |
Platform ID (required) |
If the deletion is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X DELETE "$BASE_URL/v1/platforms/{id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"