v51

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

[api v2] Create new datetime column

Specify a subtype to use any special datetime column

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

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

datetimeDefault'today' | 'now' nullable

For a subtype 'date' you can set 'today'. For a main type or subtype 'time' you can set to 'now'.

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