Currently only read operations are implemented for organizations. Full org management
requires creating and updating orgs, managing org-level webhooks for event routing,
and org-level labels that apply across all repositories in the org.
Endpoints to implement
Method
Path
Tool name
Description
POST
/orgs
create_org
Create an organization
PATCH
/orgs/{org}
update_org
Update org settings
DELETE
/orgs/{org}
delete_org
Delete an organization
GET
/orgs/{org}/hooks
list_org_webhooks
List org-level webhooks
POST
/orgs/{org}/hooks
create_org_webhook
Create org webhook
GET
/orgs/{org}/hooks/{id}
get_org_webhook
Get org webhook
PATCH
/orgs/{org}/hooks/{id}
edit_org_webhook
Edit org webhook
DELETE
/orgs/{org}/hooks/{id}
delete_org_webhook
Delete org webhook
GET
/orgs/{org}/labels
list_org_labels
List org-level labels
POST
/orgs/{org}/labels
create_org_label
Create org label
GET
/orgs/{org}/labels/{id}
get_org_label
Get org label
PATCH
/orgs/{org}/labels/{id}
edit_org_label
Edit org label
DELETE
/orgs/{org}/labels/{id}
delete_org_label
Delete org label
POST
/orgs/{org}/teams
create_team
Create team in org
Acceptance Criteria
create_org(username, visibility, ...) — visibility: public | limited | private
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Context
Currently only read operations are implemented for organizations. Full org management
requires creating and updating orgs, managing org-level webhooks for event routing,
and org-level labels that apply across all repositories in the org.
Endpoints to implement
/orgscreate_org/orgs/{org}update_org/orgs/{org}delete_org/orgs/{org}/hookslist_org_webhooks/orgs/{org}/hookscreate_org_webhook/orgs/{org}/hooks/{id}get_org_webhook/orgs/{org}/hooks/{id}edit_org_webhook/orgs/{org}/hooks/{id}delete_org_webhook/orgs/{org}/labelslist_org_labels/orgs/{org}/labelscreate_org_label/orgs/{org}/labels/{id}get_org_label/orgs/{org}/labels/{id}edit_org_label/orgs/{org}/labels/{id}delete_org_label/orgs/{org}/teamscreate_teamAcceptance Criteria
create_org(username, visibility, ...)—visibility:public|limited|privateupdate_orgaccepts:description,website,location,visibilitydelete_orgreturns{"success": true}on 204; docstring warns this is irreversibletype,config,events,active)name,color,description)create_teamaccepts:name,description,permission,unitsTechnical Notes
POST /orgsbody:{"username": "myorg", "visibility": "public", "description": "...", "website": "..."}{"type": "gitea", "config": {...}, "events": [...], "active": true}delete_orgrequires admin permission or org ownershippermission:none|read|write|admin|owner