---
title: "POST /main.user.consent.add"
method: POST
path: "/main.user.consent.add"
tags: ["main"]
---

# POST /main.user.consent.add

`POST /main.user.consent.add`

## Request body

- object
  - `fields` object, required
    - `agreementId` integer, required
    - `userId` integer
    - `ip` string, required
    - `url` string
    - `originId` string
    - `originatorId` string

## Response `200`

Success response

- object
  - `result` object
    - `item` BitrixMainConsentdto
      - `id` integer
      - `agreementId` integer
      - `userId` integer
      - `ip` string
      - `url` string
      - `originId` string
      - `originatorId` string

## Changes

- **2026-09-29** `f6be0a558c33` — 1 info
  - endpoint added
- **2026-09-28** `613c7e37ce51` — 1 breaking
  - api path removed without deprecation
- **2026-09-07** `604209646dc5` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/bitrix24/apis/bitrix24-rest-v3-api/changes/main.user.consent.add/post.md)

---

[API](https://skmtc.dev/bitrix24/apis/bitrix24-rest-v3-api.md) · [All operations](https://skmtc.dev/bitrix24/apis/bitrix24-rest-v3-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bitrix24/apis/bitrix24-rest-v3-api/revisions/f6be0a558c33?raw)
