POST /columns
Description
Adds a new column and returns a json object with the column id
The route handles the HTTP POST request made to the /columns
path.
Payload
The server expects to receive a json object with the next properties:
Name | Type | Description |
---|---|---|
label | string | Required. The name of a new column to be added. |
Example:
{
"label": "New column",
}
Response
The route returns a json object with a new column id.
Example:
{
"id": 4
}
The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).
Related articles: Working with server