Skip to main content

POST /rows

Description

Adds a new row and returns a JSON object containing the row ID.

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

Payload

The server expects a JSON object with the following properties:

NameTypeDescription
labelstringRequired. The name for the new row to be created.
collapsedbooleanOptional. Indicates the initial state of the row (swimlane). By default, the row is expanded (value is false). If set to true, the row is initially collapsed.

Example:

{
"label": "New row",
"collapsed": "true",
}

Response

The response includes a JSON object with the newly created row's ID.

Example:

{    
"id": 2
}

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