gitea-rs/crates/gitea-client/docs/OrganizationApi.md
kjuulh e78d07db33
feat: find another name
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-23 22:29:11 +02:00

67 KiB

\OrganizationApi

All URIs are relative to /api/v1

Method HTTP request Description
create_org_repo POST /orgs/{org}/repos Create a repository in an organization
create_org_repo_deprecated POST /org/{org}/repos Create a repository in an organization
create_org_variable POST /orgs/{org}/actions/variables/{variablename} Create an org-level variable
delete_org_secret DELETE /orgs/{org}/actions/secrets/{secretname} Delete a secret in an organization
delete_org_variable DELETE /orgs/{org}/actions/variables/{variablename} Delete an org-level variable
get_org_variable GET /orgs/{org}/actions/variables/{variablename} Get an org-level variable
get_org_variables_list GET /orgs/{org}/actions/variables Get an org-level variables list
org_add_team_member PUT /teams/{id}/members/{username} Add a team member
org_add_team_repository PUT /teams/{id}/repos/{org}/{repo} Add a repository to a team
org_conceal_member DELETE /orgs/{org}/public_members/{username} Conceal a user's membership
org_create POST /orgs Create an organization
org_create_hook POST /orgs/{org}/hooks Create a hook
org_create_label POST /orgs/{org}/labels Create a label for an organization
org_create_team POST /orgs/{org}/teams Create a team
org_delete DELETE /orgs/{org} Delete an organization
org_delete_avatar DELETE /orgs/{org}/avatar Delete Avatar
org_delete_hook DELETE /orgs/{org}/hooks/{id} Delete a hook
org_delete_label DELETE /orgs/{org}/labels/{id} Delete a label
org_delete_member DELETE /orgs/{org}/members/{username} Remove a member from an organization
org_delete_team DELETE /teams/{id} Delete a team
org_edit PATCH /orgs/{org} Edit an organization
org_edit_hook PATCH /orgs/{org}/hooks/{id} Update a hook
org_edit_label PATCH /orgs/{org}/labels/{id} Update a label
org_edit_team PATCH /teams/{id} Edit a team
org_get GET /orgs/{org} Get an organization
org_get_all GET /orgs Get list of organizations
org_get_hook GET /orgs/{org}/hooks/{id} Get a hook
org_get_label GET /orgs/{org}/labels/{id} Get a single label
org_get_runner_registration_token GET /orgs/{org}/actions/runners/registration-token Get an organization's actions runner registration token
org_get_team GET /teams/{id} Get a team
org_get_user_permissions GET /users/{username}/orgs/{org}/permissions Get user permissions in organization
org_is_member GET /orgs/{org}/members/{username} Check if a user is a member of an organization
org_is_public_member GET /orgs/{org}/public_members/{username} Check if a user is a public member of an organization
org_list_actions_secrets GET /orgs/{org}/actions/secrets List an organization's actions secrets
org_list_activity_feeds GET /orgs/{org}/activities/feeds List an organization's activity feeds
org_list_current_user_orgs GET /user/orgs List the current user's organizations
org_list_hooks GET /orgs/{org}/hooks List an organization's webhooks
org_list_labels GET /orgs/{org}/labels List an organization's labels
org_list_members GET /orgs/{org}/members List an organization's members
org_list_public_members GET /orgs/{org}/public_members List an organization's public members
org_list_repos GET /orgs/{org}/repos List an organization's repos
org_list_team_activity_feeds GET /teams/{id}/activities/feeds List a team's activity feeds
org_list_team_member GET /teams/{id}/members/{username} List a particular member of team
org_list_team_members GET /teams/{id}/members List a team's members
org_list_team_repo GET /teams/{id}/repos/{org}/{repo} List a particular repo of team
org_list_team_repos GET /teams/{id}/repos List a team's repos
org_list_teams GET /orgs/{org}/teams List an organization's teams
org_list_user_orgs GET /users/{username}/orgs List a user's organizations
org_publicize_member PUT /orgs/{org}/public_members/{username} Publicize a user's membership
org_remove_team_member DELETE /teams/{id}/members/{username} Remove a team member
org_remove_team_repository DELETE /teams/{id}/repos/{org}/{repo} Remove a repository from a team
org_update_avatar POST /orgs/{org}/avatar Update Avatar
organization_block_user PUT /orgs/{org}/blocks/{username} Block a user
organization_check_user_block GET /orgs/{org}/blocks/{username} Check if a user is blocked by the organization
organization_list_blocks GET /orgs/{org}/blocks List users blocked by the organization
organization_unblock_user DELETE /orgs/{org}/blocks/{username} Unblock a user
team_search GET /orgs/{org}/teams/search Search for teams within an organization
update_org_secret PUT /orgs/{org}/actions/secrets/{secretname} Create or Update a secret value in an organization
update_org_variable PUT /orgs/{org}/actions/variables/{variablename} Update an org-level variable

create_org_repo

models::Repository create_org_repo(org, body) Create a repository in an organization

Parameters

Name Type Description Required Notes
org String name of organization [required]
body Option<CreateRepoOption>

Return type

models::Repository

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_org_repo_deprecated

models::Repository create_org_repo_deprecated(org, body) Create a repository in an organization

Parameters

Name Type Description Required Notes
org String name of organization [required]
body Option<CreateRepoOption>

Return type

models::Repository

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

create_org_variable

create_org_variable(org, variablename, body) Create an org-level variable

Parameters

Name Type Description Required Notes
org String name of the organization [required]
variablename String name of the variable [required]
body Option<CreateVariableOption>

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_org_secret

delete_org_secret(org, secretname) Delete a secret in an organization

Parameters

Name Type Description Required Notes
org String name of organization [required]
secretname String name of the secret [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_org_variable

models::ActionVariable delete_org_variable(org, variablename) Delete an org-level variable

Parameters

Name Type Description Required Notes
org String name of the organization [required]
variablename String name of the variable [required]

Return type

models::ActionVariable

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_org_variable

models::ActionVariable get_org_variable(org, variablename) Get an org-level variable

Parameters

Name Type Description Required Notes
org String name of the organization [required]
variablename String name of the variable [required]

Return type

models::ActionVariable

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_org_variables_list

Vecmodels::ActionVariable get_org_variables_list(org, page, limit) Get an org-level variables list

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::ActionVariable

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_add_team_member

org_add_team_member(id, username) Add a team member

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
username String username of the user to add [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_add_team_repository

org_add_team_repository(id, org, repo) Add a repository to a team

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
org String organization that owns the repo to add [required]
repo String name of the repo to add [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_conceal_member

org_conceal_member(org, username) Conceal a user's membership

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String username of the user [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_create

models::Organization org_create(organization) Create an organization

Parameters

Name Type Description Required Notes
organization CreateOrgOption [required]

Return type

models::Organization

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_create_hook

models::Hook org_create_hook(org, body) Create a hook

Parameters

Name Type Description Required Notes
org String name of the organization [required]
body CreateHookOption [required]

Return type

models::Hook

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_create_label

models::Label org_create_label(org, body) Create a label for an organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
body Option<CreateLabelOption>

Return type

models::Label

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_create_team

models::Team org_create_team(org, body) Create a team

Parameters

Name Type Description Required Notes
org String name of the organization [required]
body Option<CreateTeamOption>

Return type

models::Team

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_delete

org_delete(org) Delete an organization

Parameters

Name Type Description Required Notes
org String organization that is to be deleted [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_delete_avatar

org_delete_avatar(org) Delete Avatar

Parameters

Name Type Description Required Notes
org String name of the organization [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_delete_hook

org_delete_hook(org, id) Delete a hook

Parameters

Name Type Description Required Notes
org String name of the organization [required]
id i64 id of the hook to delete [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_delete_label

org_delete_label(org, id) Delete a label

Parameters

Name Type Description Required Notes
org String name of the organization [required]
id i64 id of the label to delete [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_delete_member

org_delete_member(org, username) Remove a member from an organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String username of the user [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_delete_team

org_delete_team(id) Delete a team

Parameters

Name Type Description Required Notes
id i64 id of the team to delete [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_edit

models::Organization org_edit(org, body) Edit an organization

Parameters

Name Type Description Required Notes
org String name of the organization to edit [required]
body EditOrgOption [required]

Return type

models::Organization

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_edit_hook

models::Hook org_edit_hook(org, id, body) Update a hook

Parameters

Name Type Description Required Notes
org String name of the organization [required]
id i64 id of the hook to update [required]
body Option<EditHookOption>

Return type

models::Hook

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_edit_label

models::Label org_edit_label(org, id, body) Update a label

Parameters

Name Type Description Required Notes
org String name of the organization [required]
id i64 id of the label to edit [required]
body Option<EditLabelOption>

Return type

models::Label

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_edit_team

models::Team org_edit_team(id, body) Edit a team

Parameters

Name Type Description Required Notes
id i32 id of the team to edit [required]
body Option<EditTeamOption>

Return type

models::Team

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get

models::Organization org_get(org) Get an organization

Parameters

Name Type Description Required Notes
org String name of the organization to get [required]

Return type

models::Organization

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get_all

Vecmodels::Organization org_get_all(page, limit) Get list of organizations

Parameters

Name Type Description Required Notes
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Organization

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get_hook

models::Hook org_get_hook(org, id) Get a hook

Parameters

Name Type Description Required Notes
org String name of the organization [required]
id i64 id of the hook to get [required]

Return type

models::Hook

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get_label

models::Label org_get_label(org, id) Get a single label

Parameters

Name Type Description Required Notes
org String name of the organization [required]
id i64 id of the label to get [required]

Return type

models::Label

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get_runner_registration_token

org_get_runner_registration_token(org) Get an organization's actions runner registration token

Parameters

Name Type Description Required Notes
org String name of the organization [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get_team

models::Team org_get_team(id) Get a team

Parameters

Name Type Description Required Notes
id i64 id of the team to get [required]

Return type

models::Team

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_get_user_permissions

models::OrganizationPermissions org_get_user_permissions(username, org) Get user permissions in organization

Parameters

Name Type Description Required Notes
username String username of user [required]
org String name of the organization [required]

Return type

models::OrganizationPermissions

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_is_member

org_is_member(org, username) Check if a user is a member of an organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String username of the user [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_is_public_member

org_is_public_member(org, username) Check if a user is a public member of an organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String username of the user [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_actions_secrets

Vecmodels::Secret org_list_actions_secrets(org, page, limit) List an organization's actions secrets

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Secret

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_activity_feeds

Vecmodels::Activity org_list_activity_feeds(org, date, page, limit) List an organization's activity feeds

Parameters

Name Type Description Required Notes
org String name of the org [required]
date Option<String> the date of the activities to be found
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Activity

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_current_user_orgs

Vecmodels::Organization org_list_current_user_orgs(page, limit) List the current user's organizations

Parameters

Name Type Description Required Notes
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Organization

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_hooks

Vecmodels::Hook org_list_hooks(org, page, limit) List an organization's webhooks

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Hook

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_labels

Vecmodels::Label org_list_labels(org, page, limit) List an organization's labels

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Label

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_members

Vecmodels::User org_list_members(org, page, limit) List an organization's members

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::User

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_public_members

Vecmodels::User org_list_public_members(org, page, limit) List an organization's public members

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::User

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_repos

Vecmodels::Repository org_list_repos(org, page, limit) List an organization's repos

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Repository

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_team_activity_feeds

Vecmodels::Activity org_list_team_activity_feeds(id, date, page, limit) List a team's activity feeds

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
date Option<String> the date of the activities to be found
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Activity

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_team_member

models::User org_list_team_member(id, username) List a particular member of team

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
username String username of the member to list [required]

Return type

models::User

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_team_members

Vecmodels::User org_list_team_members(id, page, limit) List a team's members

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::User

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_team_repo

models::Repository org_list_team_repo(id, org, repo) List a particular repo of team

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
org String organization that owns the repo to list [required]
repo String name of the repo to list [required]

Return type

models::Repository

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_team_repos

Vecmodels::Repository org_list_team_repos(id, page, limit) List a team's repos

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Repository

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_teams

Vecmodels::Team org_list_teams(org, page, limit) List an organization's teams

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Team

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_list_user_orgs

Vecmodels::Organization org_list_user_orgs(username, page, limit) List a user's organizations

Parameters

Name Type Description Required Notes
username String username of user [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::Organization

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_publicize_member

org_publicize_member(org, username) Publicize a user's membership

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String username of the user [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_remove_team_member

org_remove_team_member(id, username) Remove a team member

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
username String username of the user to remove [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_remove_team_repository

org_remove_team_repository(id, org, repo) Remove a repository from a team

This does not delete the repository, it only removes the repository from the team.

Parameters

Name Type Description Required Notes
id i64 id of the team [required]
org String organization that owns the repo to remove [required]
repo String name of the repo to remove [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

org_update_avatar

org_update_avatar(org, body) Update Avatar

Parameters

Name Type Description Required Notes
org String name of the organization [required]
body Option<UpdateUserAvatarOption>

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json, text/plain
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

organization_block_user

organization_block_user(org, username, note) Block a user

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String user to block [required]
note Option<String> optional note for the block

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

organization_check_user_block

organization_check_user_block(org, username) Check if a user is blocked by the organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String user to check [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

organization_list_blocks

Vecmodels::User organization_list_blocks(org, page, limit) List users blocked by the organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

Vecmodels::User

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

organization_unblock_user

organization_unblock_user(org, username) Unblock a user

Parameters

Name Type Description Required Notes
org String name of the organization [required]
username String user to unblock [required]

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

models::TeamSearch200Response team_search(org, q, include_desc, page, limit) Search for teams within an organization

Parameters

Name Type Description Required Notes
org String name of the organization [required]
q Option<String> keywords to search
include_desc Option<bool> include search within team description (defaults to true)
page Option<i32> page number of results to return (1-based)
limit Option<i32> page size of results

Return type

models::TeamSearch200Response

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_org_secret

update_org_secret(org, secretname, body) Create or Update a secret value in an organization

Parameters

Name Type Description Required Notes
org String name of organization [required]
secretname String name of the secret [required]
body Option<CreateOrUpdateSecretOption>

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_org_variable

update_org_variable(org, variablename, body) Update an org-level variable

Parameters

Name Type Description Required Notes
org String name of the organization [required]
variablename String name of the variable [required]
body Option<UpdateVariableOption>

Return type

(empty response body)

Authorization

TOTPHeader, AuthorizationHeaderToken, SudoHeader, BasicAuth, AccessToken, SudoParam, Token

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]