Uploading parameters

Uploads user parameters.

  1. Request syntax
  2. Request message body
  3. Response format

Request syntax

counterId — ID of the counter to upload parameters for.

https://api-metrica.yandex.net/management/v1/counter/{counterId}/user_params/uploadings/upload
 ? [action=<user_params_uploading_action>]
Query parameters
actiontype of action, which you want to perform.

Allowed values:

  • delete_keys — deletion of parameters.
  • update — addition of parameters.

Request message body


POST https://api-metrica.yandex.net/management/v1/counter/{counterId}/user_params/uploadings/upload?action=update
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

"abc","info.id",42
"abc","info.name","abc"
--------------------------5b2a52c5c90f668a--

Request example

POST https://api-metrica.yandex.net/management/v1/counter/{counterId}/user_params/uploadings/upload?action=update

Response format


{
    "uploading" :  < uploading > 
}
Parameters Description
uploading Information about uploaded user parameters.