Create a column in a project
const url = 'https://gitea.com/api/v1/repos/example/example/projects/1/columns';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"color":"example","title":"example"}'};
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/repos/example/example/projects/1/columns \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "color": "example", "title": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Owner of the repo
Name of the repo
Id of the project
Request Body
Section titled “Request Body”CreateProjectColumnOption represents options for creating a project column
object
Column color in 6-digit hex format, e.g. #FF0000
Examplegenerated
{ "color": "example", "title": "example"}Responses
Section titled “Responses”ProjectColumn
ProjectColumn represents a project column (board)
object
User represents a user
object
Is user active
URL to the user’s avatar
The user’s description
User counts
The user’s full name
URL to the user’s gitea page
The user’s id
Is the user an administrator
User locale
The user’s location
Login of the user, same as username
Identifier of the user, provided by the external authenticator (if configured)
Is user login prohibited
Is user restricted
The ID of the user’s Authentication Source
User visibility level option: public, limited, private
The user’s website
Null only for legacy rows that carry no update timestamp
Example
{ "creator": { "visibility": "public" }}APIForbiddenError is a forbidden error response
Headers
Section titled “Headers”APINotFound is a not found empty response
APIValidationError is error format response related to input validation
Headers
Section titled “Headers”APIRepoArchivedError is an error that is raised when an archived repo should be modified