Rules

Привязать набор правил к категории

post/api/v1/rules/{rule_set_id}/link

Request

  • Base URL: http://158.160.83.199:8000
  • URL: http://158.160.83.199:8000/api/v1/rules/{rule_set_id}/link
  • Auth: HTTP bearer

Request body

rule_set_idstring uuid required

UUID набора правил для привязки

enabledboolean required

Активировать привязку сразу

is_defaultboolean required

Сделать правилом по умолчанию для категории

Example request

{
  "enabled": true
}

Response

OK

category_idstring uuid required

UUID категории

Example response

{
  "rule": {
    "name": "Молодые пользователи",
    "description": "Пользователи от 18 до 30 лет",
    "enabled": true
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.