# setMany

Иногда мы хотим в одном запросе установить значение сразу нескольким переменным, этот метод позволяет решить эту задачу

## Запрос с помощью ID подписчика в платформе

<mark style="color:green;">`POST`</mark> `https://leadconverter.ru/api/v1/токен/variable.setMany`

#### Query Parameters

| Name                                                               | Type    | Description                                                       |
| ------------------------------------------------------------------ | ------- | ----------------------------------------------------------------- |
| subscriber\_id<mark style="color:red;">\*</mark>                   | integer | идентификатор подписчика в LeadConverter                          |
| variable.имя\_первой\_переменной<mark style="color:red;">\*</mark> | string  | Значение, которое будет установлено для "имя\_первой\_переменной" |
| variable.имя\_второй\_переменной                                   | string  | Значение, которое будет установлено для "имя\_второй\_переменной" |
| variable.имя\_третьей\_переменной                                  | string  | Значение, которое будет установлено для "имя\_второй\_переменно   |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}

**Пример использования:**

```
https://leadconverter.ru/api/v1/токен/variable.setMany?secret=секретный_ключ&subscriber_id=ид_подписчика_в_платформе&variable.имя_первой_переменной=значение_переменн
```

**Пример использования в вебхуке:**

<figure><img src="/files/zBELreNuNBkDAnZujyP9" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.leadconverter.su/api-metody/variable/setmany.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
