# Установка ролевых приложений

Установка ролевого приложения  на примере приложения  **Журнал звонков**.

1. Авторизуйтесь в домене на который будет устанавливаться приложение.

![](/files/-MGnBvtk3Mi1PJWqPWfL)

2\. Откройте в соседней вкладке браузера приложение  [**Talend API Tester (Restlet) addon**](https://chrome.google.com/webstore/detail/talend-api-tester-free-ed/aejoelaoggembcahagimdiliamlcdmfm?hl=ru)**.**\
Выполните POST-запрос.

![](/files/-MGnpM8_qE6u8l95sSd8)

**Method**  - POST\
**URL**  - http\://\<domain>/rest/v1/domain/roleapps \
**Content-type** - application/json

**Body** - Text

```
	{
		"folder": "bizstat",
		"id": "feaa6bae-0172-337f-c5fb-005056011d6",
		"roles": ["stat"],
		"svcscriptcode": "core_statistic_channel",
		"title": "Журнал звонков"
	}
```

3\. Если все данные указаны верно в ответ будет получен  Response **200 OK**.

![](/files/-MGnDtG5E9tS4miPddEU)

4\. Таким же образом выполните PUT-запрос.

![](/files/-MGnpQgaf1UhqlIihaaS)

**Method**  - Put\
**URL** = http\://\<domain>/rest/v1/domain/roleapps/feaa6bae-0172-337f-c5fb-005056011d6c/attachment\
**Content-type** - multipart/form-data\
**Body** - Form\
Задайте любое имя и прикрепите файл приложения.

5\. Если все данные указаны верно в ответ будет получен Response **204 No Content**.

![](/files/-MGnGmeqjZHsjXonZ2pv)

6\. Проверить корректность загруженного файла можно с помощью запроса GET.\
В результате будет предложено скачать файл который будет равен первоначальному загруженному файлу.

![](/files/-MGnpVs20G74UY0GEclE)

{% hint style="info" %}
Таким же образом вы можете скачать любое установленное приложение с одного домена и загрузить его в другой домен
{% endhint %}

7\. Через несколько минут, приложение появится на главной странице Axatel.

![](/files/-MGnId-c56Q_5_9Z-8yW)


---

# 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://help.axatel.by/razrabotchikam/ustanovka-rolevykh-prilozhenii.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.
