Skip to main content

PUT /rows/{id}/move

Description

Changes the position of a row by moving it to a specified spot.

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:

NameTypeDescription
idnumberRequired. The identifier of the row that needs to be moved.

Payload

The request body should contain a JSON object with the following property:

NameTypeDescription
beforenumberOptional. The ID of the row that the moved row should be positioned before.

Example:

{
"before": 3
}

Response

The response will be a JSON object containing the ID of the row that was moved.

Example:

{
"id": 4
}

The HTTP status code indicates whether the request was successful (response.status == 200) or if it failed (response.status == 500).


Related articles: Working with server