Creating a permission
Creates a permission to manage a segment.
Request syntax
segmentId
– The ID of the segment to create a permission for.
https://api-audience.yandex.ru/v1/management/segment/{segmentId}/grant
?
In the request body
{
"grant" : {
"user_login" : < string > ,
"comment" : < string >
}
}
Parameters | Description |
---|---|
grant | The permission with the specified parameters. |
grant | |
user_login | The username of a user who is allowed to manage the segment. |
comment | Any comment. Maximum 255 characters. |
Parameters | Description |
---|---|
grant | The permission with the specified parameters. |
grant | |
user_login | The username of a user who is allowed to manage the segment. |
comment | Any comment. Maximum 255 characters. |
Sample request
PUT https://api-audience.yandex.ru/v1/management/segment/{segmentId}/grant?
Response format
{
"grant" : {
"user_login" : < string > ,
"created_at" : < date > ,
"comment" : < string >
}
}
Parameters | Description |
---|---|
grant | The permission with the specified parameters. |
grant | |
user_login | The username of a user who is allowed to manage the segment. |
created_at | The date when permission was granted, in the format YYYY-MM-DD'T'hh:mm:ssZ. |
comment | Any comment. Maximum 255 characters. |
Parameters | Description |
---|---|
grant | The permission with the specified parameters. |
grant | |
user_login | The username of a user who is allowed to manage the segment. |
created_at | The date when permission was granted, in the format YYYY-MM-DD'T'hh:mm:ssZ. |
comment | Any comment. Maximum 255 characters. |