Creating a segment from a file

Creates a segment from a file with data. There must be at least 100 entries in the file.

  1. Request syntax
  2. In the request body
  3. Response format

Request syntax

https://api-audience.yandex.ru/v1/management/segments/upload_file
 ? 

In the request body


POST http://api-audience.yandex.ru/v1/management/segments/upload_file
Content-Type: multipart/form-data; boundary=--------------------------5b2a52c5c90f668a
Context-Length: 331

--------------------------5b2a52c5c90f668a
Content-Disposition: form-data; name="file"; filename="data.tsv"
Content-Type: application/octet-stream

aaaaaaaa-bbbb-cccc-1111-222222222200
aaaaaaaa-bbbb-cccc-1111-222222222201
--------------------------5b2a52c5c90f668a--

Sample request

POST https://api-audience.yandex.ru/v1/management/segments/upload_file?

Response format


{
    "segment" :  < _uploading_segment > 
}
Parameters Description
segment The segment with the specified parameters.
Parameters Description
segment The segment with the specified parameters.