Create app
Adds an app to AppMetrica.
Request format
POST https://api.appmetrica.yandex.ru/management/v1/applications
Request body
{
"application": {
"name": "string",
"category": int,
"time_zone_name": "string",
"hide_address": bool,
"gdpr_agreement_accepted": bool
}
}
|
App name |
|
ID of the app category. To get a list of all app categories, use the Category list method. |
|
Time zone for statistics |
|
The status indicating if the collecting complete IP addresses of users from the EU is enabled. Possible values:
|
|
Acceptance status of the General Data Protection Regulation compliance. Possible values:
|
Response format
{
"application": {
"name": "string",
"time_zone_name": "string",
"hide_address": bool,
"gdpr_agreement_accepted": bool,
"category": int,
"use_universal_links": bool,
"id": int,
"uid": int,
"owner_login": "string",
"api_key128": "string",
"import_token": "string",
"permission": "string",
"time_zone_offset": int,
"create_date": "YYYY-MM-DD"
}
}
|
App name |
|
Time zone for statistics |
|
The status indicating if the collecting complete IP addresses of users from the EU is enabled. Possible values:
|
|
Acceptance status of the General Data Protection Regulation compliance. Possible values:
|
|
ID of the app category. To get a list of all app categories, use the Category list method. |
|
Universal link usage status. Possible values:
|
|
App ID |
|
ID of the user who added the app. |
|
Login of the app owner. |
|
API key. |
|
Post API key. |
|
Access rights. Possible values:
For more information, see Managing app access. |
|
The time zone offset relative to UTC in seconds. |
|
Date the app was added. |
Example
curl -X POST \
'https://api.appmetrica.yandex.ru/management/v1/applications' \
-H 'Content-Type: application/json' \
-H 'Authorization: OAuth 05dd3dd84ff948fdae2bc4fb91f13e22bb1f289ceef0037' \
-d '{
"application": {
"name": "string",
"category": 85,
"time_zone_name": "Asia/Yekaterinburg",
"hide_address": true,
"gdpr_agreement_accepted": true
}
}'
POST /management/v1/applications HTTP/1.1
Host: api.appmetrica.yandex.ru
Content-Type: application/json
Authorization: OAuth 05dd3dd84ff948fdae2bc4fb91f13e22bb1f289ceef0037
{
"application": {
"name": "string",
"category": 85,
"time_zone_name": "Asia/Yekaterinburg",
"hide_address": true,
"gdpr_agreement_accepted": true
}
}
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.