Category
Create category#
Creates new category.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| name | String | Category name | false |
| active | Boolean | Category activity | false |
| unavailableIfBusinessDirIds | List of integers | Id of business directions which category not available | true |
| unavailableIfGroupIds | List of integers | Id of groups which category not available | true |
| unavailableIfUserIds | List of integers | Id of users who category not available | true |
Response
Returns Category object
Examples
200 OK
Update category#
Update category.
Request body:
| Attribute | Type | Description | Nullable |
|---|---|---|---|
| name | String | Category name | false |
| active | Boolean | Category activity | false |
| unavailableIfBusinessDirIds | List of integers | Id of business directions which category not available | true |
| unavailableIfGroupIds | List of integers | Id of groups which category not available | true |
| unavailableIfUserIds | List of integers | Id of users who category not available | true |
Response
Returns Category object
Examples
200 OK
Get list categories#
Get categories by filter
Request parameters:
| Request Parameter | Type | Description | Required |
|---|---|---|---|
| active | Boolean | Return categories by activity | false |
| quick | Boolean | Return categories by quick setting | false |
| notEmpty | Boolean | return categories with templates | false |
Response
Returns a list ofCategory objects
Examples
200 OK