Reorder a project's columns
POST
/user/projects/{id}/columns/move
const url = 'https://gitea.com/api/v1/user/projects/1/columns/move';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"column_ids":[1]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://gitea.com/api/v1/user/projects/1/columns/move \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "column_ids": [ 1 ] }'Reorders every column of the project at once. The body lists all column IDs in their new order.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer format: int64
Id of the project
Request Body
Section titled “Request Body”Media typeapplication/json
MoveProjectColumnsOption represents options for reordering a project’s columns
object
column_ids
required
Every column ID of the project, in the desired left-to-right order
Array<integer>
Examplegenerated
{ "column_ids": [ 1 ]}Responses
Section titled “Responses”APIEmpty is an empty response
APIForbiddenError is a forbidden error response
Headers
Section titled “Headers”message
string
url
string
APINotFound is a not found empty response
APIValidationError is error format response related to input validation
Headers
Section titled “Headers”message
string
url
string