# \OrganizationApi All URIs are relative to *http://localhost/api/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_org_repo**](OrganizationApi.md#create_org_repo) | **Post** /org/{org}/repos | Create a repository in an organization [**org_add_team_member**](OrganizationApi.md#org_add_team_member) | **Put** /teams/{id}/members/{username} | Add a team member [**org_add_team_repository**](OrganizationApi.md#org_add_team_repository) | **Put** /teams/{id}/repos/{org}/{repo} | Add a repository to a team [**org_conceal_member**](OrganizationApi.md#org_conceal_member) | **Delete** /orgs/{org}/public_members/{username} | Conceal a user's membership [**org_create**](OrganizationApi.md#org_create) | **Post** /orgs | Create an organization [**org_create_hook**](OrganizationApi.md#org_create_hook) | **Post** /orgs/{org}/hooks/ | Create a hook [**org_create_team**](OrganizationApi.md#org_create_team) | **Post** /orgs/{org}/teams | Create a team [**org_delete**](OrganizationApi.md#org_delete) | **Delete** /orgs/{org} | Delete an organization [**org_delete_hook**](OrganizationApi.md#org_delete_hook) | **Delete** /orgs/{org}/hooks/{id} | Delete a hook [**org_delete_member**](OrganizationApi.md#org_delete_member) | **Delete** /orgs/{org}/members/{username} | Remove a member from an organization [**org_delete_team**](OrganizationApi.md#org_delete_team) | **Delete** /teams/{id} | Delete a team [**org_edit**](OrganizationApi.md#org_edit) | **Patch** /orgs/{org} | Edit an organization [**org_edit_hook**](OrganizationApi.md#org_edit_hook) | **Patch** /orgs/{org}/hooks/{id} | Update a hook [**org_edit_team**](OrganizationApi.md#org_edit_team) | **Patch** /teams/{id} | Edit a team [**org_get**](OrganizationApi.md#org_get) | **Get** /orgs/{org} | Get an organization [**org_get_hook**](OrganizationApi.md#org_get_hook) | **Get** /orgs/{org}/hooks/{id} | Get a hook [**org_get_team**](OrganizationApi.md#org_get_team) | **Get** /teams/{id} | Get a team [**org_is_member**](OrganizationApi.md#org_is_member) | **Get** /orgs/{org}/members/{username} | Check if a user is a member of an organization [**org_is_public_member**](OrganizationApi.md#org_is_public_member) | **Get** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization [**org_list_current_user_orgs**](OrganizationApi.md#org_list_current_user_orgs) | **Get** /user/orgs | List the current user's organizations [**org_list_hooks**](OrganizationApi.md#org_list_hooks) | **Get** /orgs/{org}/hooks | List an organization's webhooks [**org_list_members**](OrganizationApi.md#org_list_members) | **Get** /orgs/{org}/members | List an organization's members [**org_list_public_members**](OrganizationApi.md#org_list_public_members) | **Get** /orgs/{org}/public_members | List an organization's public members [**org_list_repos**](OrganizationApi.md#org_list_repos) | **Get** /orgs/{org}/repos | List an organization's repos [**org_list_team_member**](OrganizationApi.md#org_list_team_member) | **Get** /teams/{id}/members/{username} | List a particular member of team [**org_list_team_members**](OrganizationApi.md#org_list_team_members) | **Get** /teams/{id}/members | List a team's members [**org_list_team_repos**](OrganizationApi.md#org_list_team_repos) | **Get** /teams/{id}/repos | List a team's repos [**org_list_teams**](OrganizationApi.md#org_list_teams) | **Get** /orgs/{org}/teams | List an organization's teams [**org_list_user_orgs**](OrganizationApi.md#org_list_user_orgs) | **Get** /users/{username}/orgs | List a user's organizations [**org_publicize_member**](OrganizationApi.md#org_publicize_member) | **Put** /orgs/{org}/public_members/{username} | Publicize a user's membership [**org_remove_team_member**](OrganizationApi.md#org_remove_team_member) | **Delete** /teams/{id}/members/{username} | Remove a team member [**org_remove_team_repository**](OrganizationApi.md#org_remove_team_repository) | **Delete** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team [**team_search**](OrganizationApi.md#team_search) | **Get** /orgs/{org}/teams/search | Search for teams within an organization # **create_org_repo** > ::models::Repository create_org_repo(ctx, ctx, ctx, ctx, ctx, ctx, org, optional) Create a repository in an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of organization | **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| name of organization | **body** | [**CreateRepoOption**](CreateRepoOption.md)| | ### Return type [**::models::Repository**](Repository.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_add_team_member** > org_add_team_member(ctx, ctx, ctx, ctx, ctx, ctx, id, username) Add a team member ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | **username** | **String**| username of the user to add | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_add_team_repository** > org_add_team_repository(ctx, ctx, ctx, ctx, ctx, ctx, id, org, repo) Add a repository to a team ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | **org** | **String**| organization that owns the repo to add | **repo** | **String**| name of the repo to add | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_conceal_member** > org_conceal_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Conceal a user's membership ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **username** | **String**| username of the user | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_create** > ::models::Organization org_create(ctx, ctx, ctx, ctx, ctx, ctx, organization) Create an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **organization** | [**CreateOrgOption**](CreateOrgOption.md)| | ### Return type [**::models::Organization**](Organization.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_create_hook** > ::models::Hook org_create_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, body) Create a hook ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **body** | [**CreateHookOption**](CreateHookOption.md)| | ### Return type [**::models::Hook**](Hook.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_create_team** > ::models::Team org_create_team(ctx, ctx, ctx, ctx, ctx, ctx, org, optional) Create a team ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| name of the organization | **body** | [**CreateTeamOption**](CreateTeamOption.md)| | ### Return type [**::models::Team**](Team.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_delete** > org_delete(ctx, ctx, ctx, ctx, ctx, ctx, org) Delete an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| organization that is to be deleted | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_delete_hook** > org_delete_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, id) Delete a hook ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **id** | **i64**| id of the hook to delete | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_delete_member** > org_delete_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Remove a member from an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **username** | **String**| username of the user | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_delete_team** > org_delete_team(ctx, ctx, ctx, ctx, ctx, ctx, id) Delete a team ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team to delete | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json, text/html [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_edit** > ::models::Organization org_edit(ctx, ctx, ctx, ctx, ctx, ctx, org, body) Edit an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization to edit | **body** | [**EditOrgOption**](EditOrgOption.md)| | ### Return type [**::models::Organization**](Organization.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_edit_hook** > ::models::Hook org_edit_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, id, optional) Update a hook ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **id** | **i64**| id of the hook to update | **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| name of the organization | **id** | **i64**| id of the hook to update | **body** | [**EditHookOption**](EditHookOption.md)| | ### Return type [**::models::Hook**](Hook.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_edit_team** > ::models::Team org_edit_team(ctx, ctx, ctx, ctx, ctx, ctx, id, optional) Edit a team ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i32**| id of the team to edit | **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **i32**| id of the team to edit | **body** | [**EditTeamOption**](EditTeamOption.md)| | ### Return type [**::models::Team**](Team.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_get** > ::models::Organization org_get(ctx, ctx, ctx, ctx, ctx, ctx, org) Get an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization to get | ### Return type [**::models::Organization**](Organization.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_get_hook** > ::models::Hook org_get_hook(ctx, ctx, ctx, ctx, ctx, ctx, org, id) Get a hook ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **id** | **i64**| id of the hook to get | ### Return type [**::models::Hook**](Hook.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_get_team** > ::models::Team org_get_team(ctx, ctx, ctx, ctx, ctx, ctx, id) Get a team ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team to get | ### Return type [**::models::Team**](Team.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_is_member** > org_is_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Check if a user is a member of an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **username** | **String**| username of the user | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json, text/html [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_is_public_member** > org_is_public_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Check if a user is a public member of an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **username** | **String**| username of the user | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json, text/html [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_current_user_orgs** > Vec<::models::Organization> org_list_current_user_orgs(ctx, ctx, ctx, ctx, ctx, ctx, ) List the current user's organizations ### Required Parameters This endpoint does not need any parameter. ### Return type [**Vec<::models::Organization>**](Organization.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_hooks** > Vec<::models::Hook> org_list_hooks(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's webhooks ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | ### Return type [**Vec<::models::Hook>**](Hook.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_members** > Vec<::models::User> org_list_members(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's members ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | ### Return type [**Vec<::models::User>**](User.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_public_members** > Vec<::models::User> org_list_public_members(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's public members ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | ### Return type [**Vec<::models::User>**](User.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_repos** > Vec<::models::Repository> org_list_repos(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's repos ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | ### Return type [**Vec<::models::Repository>**](Repository.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_team_member** > ::models::User org_list_team_member(ctx, ctx, ctx, ctx, ctx, ctx, id, username) List a particular member of team ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | **username** | **String**| username of the member to list | ### Return type [**::models::User**](User.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_team_members** > Vec<::models::User> org_list_team_members(ctx, ctx, ctx, ctx, ctx, ctx, id) List a team's members ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | ### Return type [**Vec<::models::User>**](User.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_team_repos** > Vec<::models::Repository> org_list_team_repos(ctx, ctx, ctx, ctx, ctx, ctx, id) List a team's repos ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | ### Return type [**Vec<::models::Repository>**](Repository.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_teams** > Vec<::models::Team> org_list_teams(ctx, ctx, ctx, ctx, ctx, ctx, org) List an organization's teams ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | ### Return type [**Vec<::models::Team>**](Team.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_list_user_orgs** > Vec<::models::Organization> org_list_user_orgs(ctx, ctx, ctx, ctx, ctx, ctx, username) List a user's organizations ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **username** | **String**| username of user | ### Return type [**Vec<::models::Organization>**](Organization.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_publicize_member** > org_publicize_member(ctx, ctx, ctx, ctx, ctx, ctx, org, username) Publicize a user's membership ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **username** | **String**| username of the user | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_remove_team_member** > org_remove_team_member(ctx, ctx, ctx, ctx, ctx, ctx, id, username) Remove a team member ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | **username** | **String**| username of the user to remove | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **org_remove_team_repository** > org_remove_team_repository(ctx, ctx, ctx, ctx, ctx, ctx, id, org, repo) Remove a repository from a team This does not delete the repository, it only removes the repository from the team. ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **id** | **i64**| id of the team | **org** | **String**| organization that owns the repo to remove | **repo** | **String**| name of the repo to remove | ### Return type (empty response body) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **team_search** > ::models::InlineResponse200 team_search(ctx, ctx, ctx, ctx, ctx, ctx, org, optional) Search for teams within an organization ### Required Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **ctx** | **context.Context** | context containing the authentication | nil if no authentication **org** | **String**| name of the organization | **optional** | **map[string]interface{}** | optional parameters | nil if no parameters ### Optional Parameters Optional parameters are passed through a map[string]interface{}. Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **org** | **String**| name of the organization | **q** | **String**| keywords to search | **include_desc** | **bool**| include search within team description (defaults to true) | **limit** | **i32**| limit size of results | **page** | **i32**| page number of results to return (1-based) | ### Return type [**::models::InlineResponse200**](inline_response_200.md) ### Authorization [AccessToken](../README.md#AccessToken), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [BasicAuth](../README.md#BasicAuth), [SudoHeader](../README.md#SudoHeader), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token) ### HTTP request headers - **Content-Type**: application/json, text/plain - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)