Create a column in a project
POST
/user/projects/{id}/columns
const url = 'https://gitea.com/api/v1/user/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/user/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”id
required
integer format: int64
Id of the project
Request Body
Section titled “Request Body”Media typeapplication/json
CreateProjectColumnOption
Represents options for creating a project column
object
color
Column color in 6-digit hex format, e.g. #FF0000
string
title
required
string
Example generated
{ "color": "example", "title": "example"}Responses
Section titled “Responses”ProjectColumn
Media typeapplication/json
ProjectColumn
Represents a project column (board)
object
color
string
created_at
string format: date-time
creator
User
Represents a user
object
active
Is user active
boolean
avatar_url
URL to the user’s avatar
string format: uri
created
string format: date-time
description
The user’s description
string
email
string format: email
followers_count
User counts
integer format: int64
following_count
integer format: int64
full_name
The user’s full name
string
html_url
URL to the user’s gitea page
string format: uri
id
The user’s id
integer format: int64
is_admin
Is the user an administrator
boolean
language
User locale
string
last_login
string format: date-time
location
The user’s location
string
login
Login of the user, same as username
string
login_name
Identifier of the user, provided by the external authenticator (if configured)
string
prohibit_login
Is user login prohibited
boolean
restricted
Is user restricted
boolean
source_id
The ID of the user’s Authentication Source
integer format: int64
starred_repos_count
integer format: int64
type
The user type
string
visibility
User visibility level option: public, limited, private
string
website
The user’s website
string
default
boolean
id
integer format: int64
project_id
integer format: int64
sorting
integer format: int64
title
string
updated_at
Null only for legacy rows that carry no update timestamp
string format: date-time
Example
{ "creator": { "type": "User", "visibility": "public" }}default
Section titled “default”APIError is error format response
Headers
Section titled “Headers”message
string
url
string