Creating a permission
Creates a public permission to view statistics.
Request syntax
counterId
: ID of the tag for which you want to create a permission.
POST https://api-metrika.yandex.net/management/v1/counter/{counterId}/public_grant
Sample request
POST https://api-metrika.yandex.net/management/v1/counter/{counterId}/public_grant
Response format
{
"grant" : {
"user_login" : < string > ,
"perm" : < grant_type > ,
"created_at" : < date > ,
"comment" : < string >
}
}
Parameters | Description |
---|---|
grant | Permission to manage the tag and view statistics. |
grant | |
user_login | Login of the user that has been granted the permission. For a public permission, it's returned empty. |
perm | Permission level. Possible values:
|
created_at | Date when the permission was granted in YYYY-MM-DD'T'hh:mm:ssZ format. |
comment | Arbitrary comment. The maximum number of characters is 255. |
Parameters | Description |
---|---|
grant | Permission to manage the tag and view statistics. |
grant | |
user_login | Login of the user that has been granted the permission. For a public permission, it's returned empty. |
perm | Permission level. Possible values:
|
created_at | Date when the permission was granted in YYYY-MM-DD'T'hh:mm:ssZ format. |
comment | Arbitrary comment. The maximum number of characters is 255. |