Skip to main content

Create an application to connect reported metrics

POST <your-unleash-url>/api/admin/metrics/applications/:appName

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Is used to report usage as well which sdk the application uses

Request

Path Parameters

  • appName string required

Body

required

createApplicationSchema

  • appName string

    Name of the application

  • sdkVersion string

    Which SDK and version the application reporting uses. Typically represented as <identifier>:<version>

  • strategies string[]

    Which strategies the application has loaded. Useful when trying to figure out if your custom strategy has been loaded in the SDK

  • url string

    A link to reference the application reporting the metrics. Could for instance be a GitHub link to the repository of the application

  • color string

    Css color to be used to color the application's entry in the application list

  • icon string

    An URL to an icon file to be used for the applications's entry in the application list

Responses

This response has no body.

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
appName — path required
Body required
{
"appName": "accounting",
"sdkVersion": "unleash-client-java:8.0.0",
"strategies": [
"standard",
"gradualRollout",
"mySpecialCustomStrategy"
],
"url": "https://github.com/Unleash/unleash-proxy-client-js",
"color": "red",
"icon": "https://github.com/favicon.ico"
}
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/metrics/applications/:appName' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"appName": "accounting",
"sdkVersion": "unleash-client-java:8.0.0",
"strategies": [
"standard",
"gradualRollout",
"mySpecialCustomStrategy"
],
"url": "https://github.com/Unleash/unleash-proxy-client-js",
"color": "red",
"icon": "https://github.com/favicon.ico"
}'