Reorder the board's columns
PATCH
/boards/{board}/columns/order
const url = 'https://projects.work.optidata.cloud/api/boards/1/columns/order';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"columnsOrder":[{"id":302,"order":1},{"id":301,"order":2}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”board
required
integer
Board id.
Request Bodyrequired
Section titled “Request Bodyrequired”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 } ]}Responses
Section titled “ Responses ”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." ] }}