---
title: "Creates/Modifies given ACL Item"
method: POST
path: "/api/v1/AclItem"
tags: ["Access control management"]
---

# Creates/Modifies given ACL Item

`POST /api/v1/AclItem`

## Request body

- AclItemDetailsDTO
  - `Id` integer — Id of the ACL Item
  - `AclNameId` integer — Id of the AclName, the parent group
  - `Name` string, nullable — Name of the ACL Item [max 50 chars]
  - `DateFrom` string, date-time, nullable — When does the ACL Item checking start
  - `DateTo` string, date-time, nullable — When does the ACL Item checking end
  - `SendCustomFields` boolean — Determines whether CustomFields should be sent
  - `AssignmentMaps` AclAssignmentMapDTO[], nullable — Assignment mapping
    - `Id` integer
    - `AclItemId` integer
    - `LeftTicketId` integer
    - `RightTicketId` integer
  - `Tickets` AclItemTicketDateDTO[], nullable — Tickets that should be included in the checking
    - `Id` integer
    - `EventId` integer
    - `TicketId` integer
    - `TicketDateId` integer
    - `EntryCount` integer
    - `EntryCountType` 0 | 1
    - `Message` string, nullable
    - `MessageBackColor` string, nullable
    - `MessageForeColor` string, nullable
    - `DisplayInfo` string, nullable
    - `DefinitionType` 0 | 1 | 2
  - `Modules` 0 | 1
  - `OfflineMode` 0 | 1 | 2 | 3
  - `SettingsFlags` 0 | 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256
  - `CovidFlags` 0 | 1 | 2 | 4 | 8
  - `CovidJsFormula` string, nullable — As the rules vary, JS formula provides simplest way of being in-sync with the requirements
  - `ManualAddBehavior` integer
  - `Capacity` integer, nullable
  - `CfDriven` boolean
  - `CfAllowField` string, nullable
  - `CfAllowValue` string, nullable
  - `CfDisallowField` string, nullable
  - `CfDisallowValue` string, nullable
  - `CustomFormula` string, nullable

## Response `200`

OK

- AclItemResponse
  - `Id` integer

---

[API](https://skmtc.net/inviton/apis/inviton-web-api.md) · [All operations](https://skmtc.net/inviton/apis/inviton-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/inviton/inviton-web-api/revisions/a8be3ca51a5f/schema)
