POST /rows
Description
Adds a new row and responds with a JSON object containing the row ID.
This route processes HTTP POST requests sent to the '/rows' endpoint.
Payload
The server expects a JSON object with the following properties:
Name | Type | Description |
---|---|---|
label | string | Required. The name for the new row to be added. |
collapsed | boolean | Optional. Indicates the initial state of the row (swimlane). The default state is expanded (false). Setting to true means the row starts as collapsed. |
Example:
{
"label": "New row",
"collapsed": "true",
}
Response
The response contains a JSON object with the ID of the newly created row.
Example:
{
"id": 2
}
The HTTP status code signals whether the request was successful (200) or encountered an error (500).
Related articles: Working with server