Changes the specified segment. The segment updated via the API isn't displayed in the Yandex Metrica web interface.
counterId
: Tag ID.
segmentId
: ID of the segment that you want to update.
PUT https://api-metrika.yandex.net/management/v1/counter/{counterId}/apisegment/segment/{segmentId}
{
"" : {
"" : < string > ,
"" : < string > ,
"" : < segment_source >
}
}
Parameters | Description |
segment | Segment. |
segment |
name | Segment name. |
expression | An expression that matches the value of the "filters" parameter. |
segment_source | Segment source. Indicates its creation method. Accepts the value api — uses segments created through the API. |
PUT https://api-metrika.yandex.net/management/v1/counter/{counterId}/apisegment/segment/{segmentId}
{
"" : {
"" : < integer > ,
"" : < integer > ,
"" : < string > ,
"" : < string > ,
"" : < segment_source >
}
}
Parameters | Description |
segment | Segment. |
segment |
segment_id | Segment ID. |
counter_id | Tag ID. |
name | Segment name. |
expression | An expression that matches the value of the "filters" parameter. |
segment_source | Segment source. Indicates its creation method. Accepts the value api — uses segments created through the API. |