Saving a Yandex Metrica ClientId segment generated from a file
Saves a Yandex Metrica ClientId segment generated from a file with user data.
Request
POST
https://api-audience.yandex.ru/v1/management/segment/client_id/{segmentId}/confirm
Path parameters
|
Name |
Description |
|
segmentId* |
Type: integer<int32> ID of the segment that you want to save. |
Body
application/json
{
"segment": {
"name": "string",
"counter_id": 0
}
}
|
Name |
Description |
|
segment* |
Type: ClientIdSegmentRequestUploading The segment with the specified parameters. |
ClientIdSegmentRequestUploading
The segment with the specified parameters.
|
Name |
Description |
|
counter_id* |
Type: integer<int32> Tag ID. |
|
name* |
Type: string Segment name. |
Responses
200 OK
OK
Body
application/json
{
"segment": {
"type": "string",
"id": 0,
"name": "string",
"status": "string",
"create_time": "2022-12-29T18:02:01Z",
"owner": "string",
"hashed": false,
"used_hashing_alg": "string",
"content_type": "string",
"device_matching_type": "string"
}
}
|
Name |
Description |
|
segment |
Type: UploadingSegment A segment created from a file with user data. |
UploadingSegment
A segment created from a file with user data.
|
Name |
Description |
|
name* |
Type: string Segment name. |
|
used_hashing_alg* |
Type: string The hashing algorithm used for the data is sent for Starting January 2025, uploading new MD5 hashes is no longer supported. To upload new data, use SHA‑256. |
|
content_type |
Type: string Type of file content. Acceptable values:
|
|
create_time |
Type: string<date-time> The time of segment creation. |
|
device_matching_type |
Type: string Device search mode for the segment. Acceptable values:
|
|
hashed |
Type: boolean Whether every string in the uploaded file is hashed. Acceptable values:
|
|
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.