Skip to main content

POST /columns

Description

Creates a new column and returns a JSON object containing the column id.

This route processes an HTTP POST request sent to the /columns endpoint.

Payload

The server expects a JSON object with the following property:

NameTypeDescription
labelstringRequired. The name for the new column to be created.

Example:

{
"label": "New column",
}

Response

The response returns a JSON object with the id of the newly created column.

Example:

{ 
"id": 4
}

The HTTP status code indicates whether the request was successful (response.status == 200) or encountered an error (response.status == 500).


Related articles: Working with server