Edit an organization
PATCH
/orgs/{org}
const url = 'https://gitea.com/api/v1/orgs/example';const options = { method: 'PATCH', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"description":"example","email":"example","full_name":"example","location":"example","repo_admin_change_team_access":true,"visibility":"public","website":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://gitea.com/api/v1/orgs/example \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example", "email": "example", "full_name": "example", "location": "example", "repo_admin_change_team_access": true, "visibility": "public", "website": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
Name of the organization to edit
Request Body
Section titled “Request Body”Media typeapplication/json
EditOrgOption options for editing an organization
object
description
string
email
string
full_name
string
location
string
repo_admin_change_team_access
boolean
visibility
Possible values are public, limited or private
string
website
string
Responses
Section titled “Responses”Organization
Media typeapplication/json
Organization represents an organization
object
avatar_url
string
description
string
email
string
full_name
string
id
integer format: int64
location
string
name
string
repo_admin_change_team_access
boolean
username
Deprecated
string
visibility
string
website
string
Examplegenerated
{ "avatar_url": "example", "description": "example", "email": "example", "full_name": "example", "id": 1, "location": "example", "name": "example", "repo_admin_change_team_access": true, "username": "example", "visibility": "example", "website": "example"}APINotFound is a not found empty response
Media typeapplication/json