---
title: "POST /api/v4/widgets/{widget_code}"
method: POST
path: "/api/v4/widgets/{widget_code}"
---

# POST /api/v4/widgets/{widget_code}

`POST /api/v4/widgets/{widget_code}`

Install widget in account.

## Path parameters

- `widget_code` string, required

## Request body

- object

## Response `200`

The request has succeeded.

- union
  - Widget
    - `id` integer
    - `code` string
    - `version` union
      - string
      - integer
    - `rating` union
      - string
      - number, double
    - `settings_template` WidgetSettingTemplate[]
      - `key` string
      - `name` string
      - `type` string
      - `is_required` boolean
    - `is_lead_source` boolean
    - `is_work_with_dp` boolean
    - `is_crm_template` boolean
    - `client_uuid` string, nullable
    - `is_active_in_account` boolean
    - `pipeline_id` integer, nullable
    - `settings` object, nullable
    - `_links` object
  - Problem
    - `title` string
    - `status` integer
    - `detail` string
    - `type` string

---

[API](https://skmtc.net/hexlet/apis/amocrm-api.md) · [All operations](https://skmtc.net/hexlet/apis/amocrm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexlet/amocrm-api/versions/800f4ed7083b/schema)
