Skip to main content

PUT /rows/{id}/move

Description

Moves a row to a specified position

The route handles the HTTP PUT request made to the rows/{id}/move path.

Path parameters

The next parameter is sent in the request line:

NameTypeDescription
idnumberRequired. The ID of the row to be moved.

Payload

The server expects to receive a json object with the next properties:

NameTypeDescription
beforenumberOptional. The ID of the row before which the moved row should be placed.

Example:

{
"before": 3
}

Response

The server returns a json object with the ID of the moved row.

Example:

{
"id": 4
}

The HTTP status code shows whether the request succeeds (response.status == 200) or fails (response.status == 500).


Related articles: Working with server