v51

latestOpenAPI 3.0.3AGPL-3.0-or-laterraw.githubusercontent.com2026-08-017215661.2 KB
api_columns

[api v2] Create new usergroup column

post/ocs/v2.php/apps/tables/api/2/columns/usergroup

Headers

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

baseNodeIdinteger required

Context of the column creation

titlestring required

Title

technicalNamestring nullable

Technical name of the column

usergroupDefaultstring nullable

Json array{id: string, type: int}, eg [{"id": "admin", "type": 0}, {"id": "user1", "type": 0}]

usergroupMultipleItemsboolean

Whether you can select multiple users or/and groups

usergroupSelectUsersboolean

Whether you can select users

usergroupSelectGroupsboolean

Whether you can select groups

usergroupSelectTeamsboolean

Whether you can select teams

showUserStatusboolean

Whether to show the user's status

descriptionstring nullable

Description

selectedViewIdsinteger[] nullable

View IDs where this columns should be added

mandatoryboolean

Is mandatory

baseNodeType'table' | 'view'

Context type of the column creation

customSettingsobject

Custom settings for the column

Response

Column created