Creating a segment from a metric object
Creates a segment from a metric with the specified parameters.
Request
POST
https://api-audience.yandex.com/v1/management/segments/create_metrika
Body
application/json
{
"segment": {
"name": "string",
"metrika_segment_type": "string",
"metrika_segment_id": 0
}
}
Name |
Description |
segment* |
Type: SegmentRequestMetrika The segment with the specified parameters. |
SegmentRequestMetrika
The segment with the specified parameters.
Name |
Description |
metrika_segment_type* |
Type: string Object type in Yandex Metrica. Acceptable values:
|
name* |
Type: string Segment name. |
metrika_segment_id |
Type: integer<int64> ID of the object from Yandex.Metrica. |
Responses
200 OK
OK
Body
application/json
{
"segment": {
"id": 0,
"name": "string",
"type": "string",
"status": "string",
"create_time": "2022-12-29T18:02:01Z",
"owner": "string",
"metrika_segment_type": "string",
"metrika_segment_id": 0
}
}
Name |
Description |
segment |
Type: MetrikaSegment A segment imported from Yandex Metrica. |
MetrikaSegment
A segment imported from Yandex Metrica.
Name |
Description |
name* |
Type: string Segment name. |
create_time |
Type: string<date-time> The time of segment creation. |
id |
Type: integer<int32> ID of the segment. Specify this parameter when updating a segment. |
metrika_segment_id |
Type: integer<int64> ID of the object from Yandex.Metrica. |
metrika_segment_type |
Type: string Object type in Yandex Metrica. Acceptable values:
|
owner |
Type: string The username of the segment owner. |
status |
Type: string Status of processing the segment. Acceptable values:
|
type |
Type: string Segment type. Acceptable values:
|
No longer supported, please use an alternative and newer version.