Skip to main content

PUT /columns/{id}/move

Description

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

This route processes an HTTP PUT request sent to columns/{id}/move.

Path parameters

The following parameter is included in the request URL:

NameTypeDescription
idnumberRequired. The identifier of the column to be moved.

Payload

The server expects a JSON object containing the following property:

NameTypeDescription
beforenumberOptional. The ID of the column that the moved column should be placed in front of.

Example:

{
"before": 3
}

Response

The server responds with a JSON object indicating the ID of the column that was moved.

Example:

{
"id": 4
}

The HTTP status code indicates the outcome of the request: a status of 200 means it was successful, while 500 indicates an error.


Related articles: Working with server