v51

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

[api v2] Create new text column

Specify a subtype to use any special text column

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

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

textDefaultstring nullable

Default

textAllowedPatternstring nullable

Allowed regex pattern

textMaxLengthinteger nullable

Max raw text length

textUniqueboolean nullable

Whether the text value must be unique, if column is a text

subtype'progress' | 'stars' nullable

Subtype for the new column

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