Create Organization
Any authenticated non-Viewer may create an organization — org creation is a self-service action independent of the global RBAC role otherwise, mirroring Gogs/GitHub, but Viewer is excluded like every other org management action. The creator automatically becomes that org's first admin member.
Authorization
HTTPBearer In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/v1/organizations" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "private": true, "is_active": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "full_name": "string", "description": "string", "website": "string", "location_id": "46910cc3-ab41-4b80-b4a7-94dab9f1b795", "location_name": "string", "email": "string", "phone": "string", "logo_file_id": "8a606be6-cb8e-4c20-bcd3-4ef40c89ea63", "logo_url": "string", "asset_count": 0, "member_count": 0, "is_member": false, "my_role": "member", "can_manage": false, "is_last_admin": false, "has_pending_join_request": false}{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}getList Organizations
Every active organization, name-only for private ones — enough for a non-member to discover a private org exists and request to join it. `mine=true` scopes the list to the caller's own active memberships (e.g. the organization picker on asset creation). Super Admin additionally sees deactivated organizations — the only way to reach one, since it's invisible to everyone else.
getGet Organization
Next Page