POST /rows
Description
Adds a new row and returns a json object with the row ID in it
The route handles the HTTP POST request made to the '/rows' 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 row to be added. |
collapsed | boolean | Optional. The current state of the row (swimlane). By default, the row is expanded (the value is false). If true, the row is collapsed initially. |
Example:
{
"label": "New row",
"collapsed": "true",
}
Response
The route returns a json object with a new row ID.
Example:
{
"id": 2
}
The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).
Related articles: Working with server