Skip to main content

POST /columns

Description

Adds a new column and returns a JSON object with the column ID.

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

Payload

The server expects a JSON object containing the following property:

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

Example:

{
"label": "New column",
}

Response

The response includes a JSON object with the ID of the newly created column.

Example:

{ 
"id": 4
}

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


Related articles: Working with server