Create an application to connect reported metrics
POST<your-unleash-url>/api/admin/metrics/applications/:appName
Is used to report usage as well which sdk the application uses
Request
Responses
- 202
- 400
- 401
- 403
This response has no body.
The request data does not match what we expect.
Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
The provided user credentials are valid, but the user does not have the necessary permissions to perform this operation
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '<your-unleash-url>/api/admin/metrics/applications/:appName' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"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"
}'
ResponseClear