Skip to content

Reorder the board's columns

PATCH
/boards/{board}/columns/order
curl --request PATCH \
--url https://projects.work.optidata.cloud/api/boards/1/columns/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "columnsOrder": [ { "id": 302, "order": 1 }, { "id": 301, "order": 2 } ] }'

Bulk-updates the position of the board’s columns. Every referenced id must belong to the board, otherwise the request fails with 400.

board
required
integer

Board id.

Media typeapplication/json
object
columnsOrder
required
Array<object>
object
id
required
integer
order
required
integer
Example
{
"columnsOrder": [
{
"id": 302,
"order": 1
},
{
"id": 301,
"order": 2
}
]
}

The applied order (echo of the request).

Media typeapplication/json
Array<object>
object
id
integer
order
integer
Examplegenerated
[
{
"id": 1,
"order": 1
}
]

A referenced column does not belong to the board.

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Missing, invalid or expired bearer passport.

Media typeapplication/json
object
error
string
Example
{
"error": "JWT passport exception: Missing bearer token in request"
}

The authenticated user lacks the required board permission.

Media typeapplication/json
object
message
string
Example
{
"message": "This action is unauthorized."
}

Resource not found, or a nested resource does not belong to its parent in the path.

Media typeapplication/json
object
message
string
Example
{
"message": "Not found."
}

Validation failed.

Media typeapplication/json
object
message

First validation error message.

string
errors

Map of field name → list of error messages.

object
key
additional properties
Array<string>
Example
{
"message": "The name field is required.",
"errors": {
"name": [
"The name field is required."
]
}
}