Skip to content
Try Gitea Cloud ☁️ for 30 days → Accelerate your Development & Deploys!
This is the documentation of the next version, still under development. See the latest release.

Edit a project

PATCH
/repos/{owner}/{repo}/projects/{id}
curl --request PATCH \
--url https://gitea.com/api/v1/repos/example/example/projects/1 \
--header 'Authorization: Basic <credentials>' \
--header 'Content-Type: application/json' \
--data '{ "card_type": "example", "description": "example", "state": "open", "title": "example" }'
owner
required
string

Owner of the repo

repo
required
string

Name of the repo

id
required
integer format: int64

Id of the project

Media typeapplication/json

EditProjectOption represents options for editing a project

object
card_type

Card type: “text_only” or “images_and_text”

string
description
string
state
string
Allowed values: open closed
title
string

Project

Media typeapplication/json
Project represents a project.

Projects track issues and pull requests, standalone note cards are not supported.

object
card_type

Card type: “text_only” or “images_and_text”

string
closed_at
string format: date-time
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
visibility

User visibility level option: public, limited, private

string
Allowed values: public limited private
website

The user’s website

string
creator_id

Deprecated: use Creator instead

integer format: int64
description
string
html_url
string format: uri
id
integer format: int64
is_closed

Deprecated: use State instead

boolean
num_closed_issues
integer format: int64
num_issues
integer format: int64
num_open_issues
integer format: int64
owner_id
integer format: int64
repo_id
integer format: int64
state
string
Allowed values: open closed
template_type

Template type: “none”, “basic_kanban” or “bug_triage”

string
title
string
type

Project type: “individual”, “repository” or “organization”

string
updated_at

Null only for legacy rows that carry no update timestamp

string format: date-time
Example
{
"creator": {
"visibility": "public"
},
"state": "open"
}

APINotFound is a not found empty response

APIValidationError is error format response related to input validation

message
string
url
string

APIRepoArchivedError is an error that is raised when an archived repo should be modified

message
string
url
string