Skip to main content
PATCH
/
orgs
/
{orgname}
Edit an organization
curl --request PATCH \
  --url https://gogs.example.com/api/v1/orgs/{orgname} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "full_name": "<string>",
  "description": "<string>",
  "website": "<string>",
  "location": "<string>"
}
'
{
  "id": 123,
  "username": "<string>",
  "full_name": "<string>",
  "avatar_url": "<string>",
  "description": "<string>",
  "website": "<string>",
  "location": "<string>"
}

Authorizations

Authorization
string
header
required

Personal access token. Use format: token {YOUR_ACCESS_TOKEN}

Path Parameters

orgname
string
required

Organization name

Body

application/json
full_name
string
description
string
website
string
location
string

Response

Success

id
integer
username
string
full_name
string
avatar_url
string
description
string
website
string
location
string