Saving a segment created from a file
Saves a segment created from a file with data.
Request syntax
segmentId
– ID of the segment you want to save.
https://api-audience.yandex.ru/v1/management/segment/{segmentId}/confirm
? [check_size=<boolean>]
check_size | This parameter enables you to create segments of less than 100 entries. Such segments cannot be used for ads in Yandex Direct until their size exceeds 100 entries. Default value: true. |
check_size | This parameter enables you to create segments of less than 100 entries. Such segments cannot be used for ads in Yandex Direct until their size exceeds 100 entries. Default value: true. |
In the request body
{
"segment" : {
"id" : < int > ,
"name" : < string > ,
"hashed" : < boolean > ,
"content_type" : < segment_content_type >
}
}
Parameters | Description |
---|---|
segment | The segment with the specified parameters. |
segment | |
id | ID of the segment. Specify this parameter when updating a segment. |
name | Segment name. |
hashed | Whether every string in the uploaded file is hashed. Possible values:
|
content_type | The type of file content. Possible values:
|
Parameters | Description |
---|---|
segment | The segment with the specified parameters. |
segment | |
id | ID of the segment. Specify this parameter when updating a segment. |
name | Segment name. |
hashed | Whether every string in the uploaded file is hashed. Possible values:
|
content_type | The type of file content. Possible values:
|
Sample request
POST https://api-audience.yandex.ru/v1/management/segment/{segmentId}/confirm?
Response format
{
"segment" : < _uploading_segment >
}
Parameters | Description |
---|---|
segment | The segment with the specified parameters. |
Parameters | Description |
---|---|
segment | The segment with the specified parameters. |