PUT /rows/{id}/move
Description
Moves a row to a new position
This route processes an HTTP PUT request sent to the rows/{id}/move endpoint.
Path parameters
The following parameter is included in the request URL:
| Name | Type | Description |
|---|---|---|
id | number | Required. The identifier of the row to be moved. |
Payload
The server expects a JSON object containing the following property:
| Name | Type | Description |
|---|---|---|
before | number | Optional. The ID of the row that the moved row should be positioned before. |
Example:
{
"before": 3
}
Response
The server responds with a JSON object indicating the ID of the row that was moved.
Example:
{
"id": 4
}
The HTTP status code indicates if the request was successful (response.status == 200) or if it failed (response.status == 500).
Related articles: Working with server