cURL
curl --request POST \ --url https://gogs.example.com/api/v1/admin/orgs/{orgname}/teams \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "description": "<string>", "permission": "read" } '
{ "id": 123, "name": "<string>", "description": "<string>", "permission": "read" }
Requires the authenticated user to be a site administrator.
Personal access token. Use format: token {YOUR_ACCESS_TOKEN}
Organization name
read
write
admin
Created
owner