Editing a segment
Modifies the specified segment.
Request
PUT
https://api-audience.yandex.com/v1/management/segment/{segmentId}
Path parameters
Name |
Description |
segmentId* |
Type: integer<int32> ID of the segment that you want to edit. |
Body
application/json
{
"segment": {
"name": "string"
}
}
Name |
Description |
segment |
Type: SegmentName The segment with the specified parameters. |
SegmentName
The segment with the specified parameters.
Name |
Description |
name* |
Type: string Segment name. |
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"
}
}
Name |
Description |
segment |
Type: BaseSegment The segment description by type. |
BaseSegment
The segment description by type.
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. |
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.