# OrganizationApi

All URIs are relative to */api/v1*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createOrgRepo**](#createorgrepo) | **POST** /orgs/{org}/repos | Create a repository in an organization|
|[**createOrgRepoDeprecated**](#createorgrepodeprecated) | **POST** /org/{org}/repos | Create a repository in an organization|
|[**createOrgVariable**](#createorgvariable) | **POST** /orgs/{org}/actions/variables/{variablename} | Create an org-level variable|
|[**deleteOrgSecret**](#deleteorgsecret) | **DELETE** /orgs/{org}/actions/secrets/{secretname} | Delete a secret in an organization|
|[**deleteOrgVariable**](#deleteorgvariable) | **DELETE** /orgs/{org}/actions/variables/{variablename} | Delete an org-level variable|
|[**getOrgVariable**](#getorgvariable) | **GET** /orgs/{org}/actions/variables/{variablename} | Get an org-level variable|
|[**getOrgVariablesList**](#getorgvariableslist) | **GET** /orgs/{org}/actions/variables | Get an org-level variables list|
|[**orgAddTeamMember**](#orgaddteammember) | **PUT** /teams/{id}/members/{username} | Add a team member|
|[**orgAddTeamRepository**](#orgaddteamrepository) | **PUT** /teams/{id}/repos/{org}/{repo} | Add a repository to a team|
|[**orgBlockUser**](#orgblockuser) | **PUT** /orgs/{org}/block/{username} | Blocks a user from the organization|
|[**orgCheckQuota**](#orgcheckquota) | **GET** /orgs/{org}/quota/check | Check if the organization is over quota for a given subject|
|[**orgConcealMember**](#orgconcealmember) | **DELETE** /orgs/{org}/public_members/{username} | Conceal a user\&#39;s membership|
|[**orgCreate**](#orgcreate) | **POST** /orgs | Create an organization|
|[**orgCreateHook**](#orgcreatehook) | **POST** /orgs/{org}/hooks | Create a hook|
|[**orgCreateLabel**](#orgcreatelabel) | **POST** /orgs/{org}/labels | Create a label for an organization|
|[**orgCreateTeam**](#orgcreateteam) | **POST** /orgs/{org}/teams | Create a team|
|[**orgDelete**](#orgdelete) | **DELETE** /orgs/{org} | Delete an organization|
|[**orgDeleteAvatar**](#orgdeleteavatar) | **DELETE** /orgs/{org}/avatar | Delete Avatar|
|[**orgDeleteHook**](#orgdeletehook) | **DELETE** /orgs/{org}/hooks/{id} | Delete a hook|
|[**orgDeleteLabel**](#orgdeletelabel) | **DELETE** /orgs/{org}/labels/{id} | Delete a label|
|[**orgDeleteMember**](#orgdeletemember) | **DELETE** /orgs/{org}/members/{username} | Remove a member from an organization|
|[**orgDeleteTeam**](#orgdeleteteam) | **DELETE** /teams/{id} | Delete a team|
|[**orgEdit**](#orgedit) | **PATCH** /orgs/{org} | Edit an organization|
|[**orgEditHook**](#orgedithook) | **PATCH** /orgs/{org}/hooks/{id} | Update a hook|
|[**orgEditLabel**](#orgeditlabel) | **PATCH** /orgs/{org}/labels/{id} | Update a label|
|[**orgEditTeam**](#orgeditteam) | **PATCH** /teams/{id} | Edit a team|
|[**orgGet**](#orgget) | **GET** /orgs/{org} | Get an organization|
|[**orgGetAll**](#orggetall) | **GET** /orgs | Get list of organizations|
|[**orgGetHook**](#orggethook) | **GET** /orgs/{org}/hooks/{id} | Get a hook|
|[**orgGetLabel**](#orggetlabel) | **GET** /orgs/{org}/labels/{id} | Get a single label|
|[**orgGetQuota**](#orggetquota) | **GET** /orgs/{org}/quota | Get quota information for an organization|
|[**orgGetRunnerRegistrationToken**](#orggetrunnerregistrationtoken) | **GET** /orgs/{org}/actions/runners/registration-token | Get an organization\&#39;s actions runner registration token|
|[**orgGetTeam**](#orggetteam) | **GET** /teams/{id} | Get a team|
|[**orgGetUserPermissions**](#orggetuserpermissions) | **GET** /users/{username}/orgs/{org}/permissions | Get user permissions in organization|
|[**orgIsMember**](#orgismember) | **GET** /orgs/{org}/members/{username} | Check if a user is a member of an organization|
|[**orgIsPublicMember**](#orgispublicmember) | **GET** /orgs/{org}/public_members/{username} | Check if a user is a public member of an organization|
|[**orgListActionsSecrets**](#orglistactionssecrets) | **GET** /orgs/{org}/actions/secrets | List an organization\&#39;s actions secrets|
|[**orgListActivityFeeds**](#orglistactivityfeeds) | **GET** /orgs/{org}/activities/feeds | List an organization\&#39;s activity feeds|
|[**orgListBlockedUsers**](#orglistblockedusers) | **GET** /orgs/{org}/list_blocked | List the organization\&#39;s blocked users|
|[**orgListCurrentUserOrgs**](#orglistcurrentuserorgs) | **GET** /user/orgs | List the current user\&#39;s organizations|
|[**orgListHooks**](#orglisthooks) | **GET** /orgs/{org}/hooks | List an organization\&#39;s webhooks|
|[**orgListLabels**](#orglistlabels) | **GET** /orgs/{org}/labels | List an organization\&#39;s labels|
|[**orgListMembers**](#orglistmembers) | **GET** /orgs/{org}/members | List an organization\&#39;s members|
|[**orgListPublicMembers**](#orglistpublicmembers) | **GET** /orgs/{org}/public_members | List an organization\&#39;s public members|
|[**orgListQuotaArtifacts**](#orglistquotaartifacts) | **GET** /orgs/{org}/quota/artifacts | List the artifacts affecting the organization\&#39;s quota|
|[**orgListQuotaAttachments**](#orglistquotaattachments) | **GET** /orgs/{org}/quota/attachments | List the attachments affecting the organization\&#39;s quota|
|[**orgListQuotaPackages**](#orglistquotapackages) | **GET** /orgs/{org}/quota/packages | List the packages affecting the organization\&#39;s quota|
|[**orgListRepos**](#orglistrepos) | **GET** /orgs/{org}/repos | List an organization\&#39;s repos|
|[**orgListTeamActivityFeeds**](#orglistteamactivityfeeds) | **GET** /teams/{id}/activities/feeds | List a team\&#39;s activity feeds|
|[**orgListTeamMember**](#orglistteammember) | **GET** /teams/{id}/members/{username} | List a particular member of team|
|[**orgListTeamMembers**](#orglistteammembers) | **GET** /teams/{id}/members | List a team\&#39;s members|
|[**orgListTeamRepo**](#orglistteamrepo) | **GET** /teams/{id}/repos/{org}/{repo} | List a particular repo of team|
|[**orgListTeamRepos**](#orglistteamrepos) | **GET** /teams/{id}/repos | List a team\&#39;s repos|
|[**orgListTeams**](#orglistteams) | **GET** /orgs/{org}/teams | List an organization\&#39;s teams|
|[**orgListUserOrgs**](#orglistuserorgs) | **GET** /users/{username}/orgs | List a user\&#39;s organizations|
|[**orgPublicizeMember**](#orgpublicizemember) | **PUT** /orgs/{org}/public_members/{username} | Publicize a user\&#39;s membership|
|[**orgRemoveTeamMember**](#orgremoveteammember) | **DELETE** /teams/{id}/members/{username} | Remove a team member|
|[**orgRemoveTeamRepository**](#orgremoveteamrepository) | **DELETE** /teams/{id}/repos/{org}/{repo} | Remove a repository from a team|
|[**orgSearchRunJobs**](#orgsearchrunjobs) | **GET** /orgs/{org}/actions/runners/jobs | Search for organization\&#39;s action jobs according filter conditions|
|[**orgUnblockUser**](#orgunblockuser) | **PUT** /orgs/{org}/unblock/{username} | Unblock a user from the organization|
|[**orgUpdateAvatar**](#orgupdateavatar) | **POST** /orgs/{org}/avatar | Update Avatar|
|[**renameOrg**](#renameorg) | **POST** /orgs/{org}/rename | Rename an organization|
|[**teamSearch**](#teamsearch) | **GET** /orgs/{org}/teams/search | Search for teams within an organization|
|[**updateOrgSecret**](#updateorgsecret) | **PUT** /orgs/{org}/actions/secrets/{secretname} | Create or Update a secret value in an organization|
|[**updateOrgVariable**](#updateorgvariable) | **PUT** /orgs/{org}/actions/variables/{variablename} | Update an org-level variable|

# **createOrgRepo**
> Repository createOrgRepo()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of organization (default to undefined)
let body: CreateRepoOption; // (optional)

const { status, data } = await apiInstance.createOrgRepo(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateRepoOption**|  | |
| **org** | [**string**] | name of organization | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Repository |  -  |
|**400** | APIError is error format response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **createOrgRepoDeprecated**
> Repository createOrgRepoDeprecated()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateRepoOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of organization (default to undefined)
let body: CreateRepoOption; // (optional)

const { status, data } = await apiInstance.createOrgRepoDeprecated(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateRepoOption**|  | |
| **org** | [**string**] | name of organization | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Repository |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **createOrgVariable**
> createOrgVariable()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateVariableOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let variablename: string; //name of the variable (default to undefined)
let body: CreateVariableOption; // (optional)

const { status, data } = await apiInstance.createOrgVariable(
    org,
    variablename,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateVariableOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when creating an org-level variable |  -  |
|**204** | response when creating an org-level variable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **deleteOrgSecret**
> deleteOrgSecret()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of organization (default to undefined)
let secretname: string; //name of the secret (default to undefined)

const { status, data } = await apiInstance.deleteOrgSecret(
    org,
    secretname
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of organization | defaults to undefined|
| **secretname** | [**string**] | name of the secret | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | delete one secret of the organization |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **deleteOrgVariable**
> ActionVariable deleteOrgVariable()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let variablename: string; //name of the variable (default to undefined)

const { status, data } = await apiInstance.deleteOrgVariable(
    org,
    variablename
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

**ActionVariable**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionVariable |  -  |
|**201** | response when deleting a variable |  -  |
|**204** | response when deleting a variable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **getOrgVariable**
> ActionVariable getOrgVariable()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let variablename: string; //name of the variable (default to undefined)

const { status, data } = await apiInstance.getOrgVariable(
    org,
    variablename
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

**ActionVariable**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActionVariable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **getOrgVariablesList**
> Array<ActionVariable> getOrgVariablesList()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.getOrgVariablesList(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<ActionVariable>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | VariableList |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgAddTeamMember**
> orgAddTeamMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let username: string; //username of the user to add (default to undefined)

const { status, data } = await apiInstance.orgAddTeamMember(
    id,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **username** | [**string**] | username of the user to add | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgAddTeamRepository**
> orgAddTeamRepository()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let org: string; //organization that owns the repo to add (default to undefined)
let repo: string; //name of the repo to add (default to undefined)

const { status, data } = await apiInstance.orgAddTeamRepository(
    id,
    org,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **org** | [**string**] | organization that owns the repo to add | defaults to undefined|
| **repo** | [**string**] | name of the repo to add | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgBlockUser**
> orgBlockUser()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the org (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgBlockUser(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the org | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgCheckQuota**
> orgCheckQuota()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)

const { status, data } = await apiInstance.orgCheckQuota(
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Boolean |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgConcealMember**
> orgConcealMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgConcealMember(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgCreate**
> Organization orgCreate(organization)


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateOrgOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let organization: CreateOrgOption; //

const { status, data } = await apiInstance.orgCreate(
    organization
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **organization** | **CreateOrgOption**|  | |


### Return type

**Organization**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Organization |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgCreateHook**
> Hook orgCreateHook(body)


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateHookOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let body: CreateHookOption; //

const { status, data } = await apiInstance.orgCreateHook(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateHookOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

**Hook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Hook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgCreateLabel**
> Label orgCreateLabel()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateLabelOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let body: CreateLabelOption; // (optional)

const { status, data } = await apiInstance.orgCreateLabel(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateLabelOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

**Label**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Label |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgCreateTeam**
> Team orgCreateTeam()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateTeamOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let body: CreateTeamOption; // (optional)

const { status, data } = await apiInstance.orgCreateTeam(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateTeamOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

**Team**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | Team |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgDelete**
> orgDelete()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //organization that is to be deleted (default to undefined)

const { status, data } = await apiInstance.orgDelete(
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | organization that is to be deleted | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgDeleteAvatar**
> orgDeleteAvatar()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)

const { status, data } = await apiInstance.orgDeleteAvatar(
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgDeleteHook**
> orgDeleteHook()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let id: number; //id of the hook to delete (default to undefined)

const { status, data } = await apiInstance.orgDeleteHook(
    org,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **id** | [**number**] | id of the hook to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgDeleteLabel**
> orgDeleteLabel()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let id: number; //id of the label to delete (default to undefined)

const { status, data } = await apiInstance.orgDeleteLabel(
    org,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **id** | [**number**] | id of the label to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgDeleteMember**
> orgDeleteMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgDeleteMember(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | member removed |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgDeleteTeam**
> orgDeleteTeam()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team to delete (default to undefined)

const { status, data } = await apiInstance.orgDeleteTeam(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team to delete | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json, text/html


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | team deleted |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgEdit**
> Organization orgEdit(body)


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    EditOrgOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization to edit (default to undefined)
let body: EditOrgOption; //

const { status, data } = await apiInstance.orgEdit(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditOrgOption**|  | |
| **org** | [**string**] | name of the organization to edit | defaults to undefined|


### Return type

**Organization**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Organization |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIError is error format response |  -  |

[[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)

# **orgEditHook**
> Hook orgEditHook()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    EditHookOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let id: number; //id of the hook to update (default to undefined)
let body: EditHookOption; // (optional)

const { status, data } = await apiInstance.orgEditHook(
    org,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditHookOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|
| **id** | [**number**] | id of the hook to update | defaults to undefined|


### Return type

**Hook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Hook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgEditLabel**
> Label orgEditLabel()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    EditLabelOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let id: number; //id of the label to edit (default to undefined)
let body: EditLabelOption; // (optional)

const { status, data } = await apiInstance.orgEditLabel(
    org,
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditLabelOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|
| **id** | [**number**] | id of the label to edit | defaults to undefined|


### Return type

**Label**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Label |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgEditTeam**
> Team orgEditTeam()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    EditTeamOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team to edit (default to undefined)
let body: EditTeamOption; // (optional)

const { status, data } = await apiInstance.orgEditTeam(
    id,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **EditTeamOption**|  | |
| **id** | [**number**] | id of the team to edit | defaults to undefined|


### Return type

**Team**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Team |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgGet**
> Organization orgGet()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization to get (default to undefined)

const { status, data } = await apiInstance.orgGet(
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization to get | defaults to undefined|


### Return type

**Organization**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Organization |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgGetAll**
> Array<Organization> orgGetAll()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgGetAll(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Organization>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OrganizationList |  -  |

[[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)

# **orgGetHook**
> Hook orgGetHook()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let id: number; //id of the hook to get (default to undefined)

const { status, data } = await apiInstance.orgGetHook(
    org,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **id** | [**number**] | id of the hook to get | defaults to undefined|


### Return type

**Hook**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Hook |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgGetLabel**
> Label orgGetLabel()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let id: number; //id of the label to get (default to undefined)

const { status, data } = await apiInstance.orgGetLabel(
    org,
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **id** | [**number**] | id of the label to get | defaults to undefined|


### Return type

**Label**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Label |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgGetQuota**
> QuotaInfo orgGetQuota()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)

const { status, data } = await apiInstance.orgGetQuota(
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

**QuotaInfo**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | QuotaInfo |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgGetRunnerRegistrationToken**
> orgGetRunnerRegistrationToken()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)

const { status, data } = await apiInstance.orgGetRunnerRegistrationToken(
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RegistrationToken is a string used to register a runner with a server |  * token -  <br>  |

[[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)

# **orgGetTeam**
> Team orgGetTeam()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team to get (default to undefined)

const { status, data } = await apiInstance.orgGetTeam(
    id
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team to get | defaults to undefined|


### Return type

**Team**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Team |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgGetUserPermissions**
> OrganizationPermissions orgGetUserPermissions()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let username: string; //username of user (default to undefined)
let org: string; //name of the organization (default to undefined)

const { status, data } = await apiInstance.orgGetUserPermissions(
    username,
    org
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | defaults to undefined|
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

**OrganizationPermissions**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OrganizationPermissions |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgIsMember**
> orgIsMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgIsMember(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | user is a member |  -  |
|**303** | redirection to /orgs/{org}/public_members/{username} |  -  |
|**404** | user is not a member |  -  |

[[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)

# **orgIsPublicMember**
> orgIsPublicMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgIsPublicMember(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | user is a public member |  -  |
|**404** | user is not a public member |  -  |

[[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)

# **orgListActionsSecrets**
> Array<Secret> orgListActionsSecrets()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListActionsSecrets(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Secret>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SecretList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListActivityFeeds**
> Array<Activity> orgListActivityFeeds()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the org (default to undefined)
let date: string; //the date of the activities to be found (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListActivityFeeds(
    org,
    date,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the org | defaults to undefined|
| **date** | [**string**] | the date of the activities to be found | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Activity>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActivityFeedsList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListBlockedUsers**
> Array<BlockedUser> orgListBlockedUsers()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the org (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListBlockedUsers(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the org | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<BlockedUser>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | BlockedUserList |  -  |

[[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)

# **orgListCurrentUserOrgs**
> Array<Organization> orgListCurrentUserOrgs()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListCurrentUserOrgs(
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Organization>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OrganizationList |  -  |
|**401** | APIUnauthorizedError is a unauthorized error response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListHooks**
> Array<Hook> orgListHooks()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListHooks(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Hook>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | HookList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListLabels**
> Array<Label> orgListLabels()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListLabels(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Label>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | LabelList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListMembers**
> Array<User> orgListMembers()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListMembers(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListPublicMembers**
> Array<User> orgListPublicMembers()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListPublicMembers(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListQuotaArtifacts**
> Array<QuotaUsedArtifact> orgListQuotaArtifacts()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListQuotaArtifacts(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<QuotaUsedArtifact>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | QuotaUsedArtifactList |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListQuotaAttachments**
> Array<QuotaUsedAttachment> orgListQuotaAttachments()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListQuotaAttachments(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<QuotaUsedAttachment>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | QuotaUsedAttachmentList |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListQuotaPackages**
> Array<QuotaUsedPackage> orgListQuotaPackages()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListQuotaPackages(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<QuotaUsedPackage>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | QuotaUsedPackageList |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListRepos**
> Array<Repository> orgListRepos()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListRepos(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Repository>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepositoryList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListTeamActivityFeeds**
> Array<Activity> orgListTeamActivityFeeds()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let date: string; //the date of the activities to be found (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListTeamActivityFeeds(
    id,
    date,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **date** | [**string**] | the date of the activities to be found | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Activity>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | ActivityFeedsList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListTeamMember**
> User orgListTeamMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let username: string; //username of the member to list (default to undefined)

const { status, data } = await apiInstance.orgListTeamMember(
    id,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **username** | [**string**] | username of the member to list | defaults to undefined|


### Return type

**User**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | User |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListTeamMembers**
> Array<User> orgListTeamMembers()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListTeamMembers(
    id,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<User>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | UserList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListTeamRepo**
> Repository orgListTeamRepo()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let org: string; //organization that owns the repo to list (default to undefined)
let repo: string; //name of the repo to list (default to undefined)

const { status, data } = await apiInstance.orgListTeamRepo(
    id,
    org,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **org** | [**string**] | organization that owns the repo to list | defaults to undefined|
| **repo** | [**string**] | name of the repo to list | defaults to undefined|


### Return type

**Repository**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Repository |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListTeamRepos**
> Array<Repository> orgListTeamRepos()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListTeamRepos(
    id,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Repository>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RepositoryList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListTeams**
> Array<Team> orgListTeams()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListTeams(
    org,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Team>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | TeamList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgListUserOrgs**
> Array<Organization> orgListUserOrgs()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let username: string; //username of user (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.orgListUserOrgs(
    username,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **username** | [**string**] | username of user | defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**Array<Organization>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OrganizationList |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgPublicizeMember**
> orgPublicizeMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgPublicizeMember(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | membership publicized |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgRemoveTeamMember**
> orgRemoveTeamMember()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let username: string; //username of the user to remove (default to undefined)

const { status, data } = await apiInstance.orgRemoveTeamMember(
    id,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **username** | [**string**] | username of the user to remove | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgRemoveTeamRepository**
> orgRemoveTeamRepository()

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

### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let id: number; //id of the team (default to undefined)
let org: string; //organization that owns the repo to remove (default to undefined)
let repo: string; //name of the repo to remove (default to undefined)

const { status, data } = await apiInstance.orgRemoveTeamRepository(
    id,
    org,
    repo
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | id of the team | defaults to undefined|
| **org** | [**string**] | organization that owns the repo to remove | defaults to undefined|
| **repo** | [**string**] | name of the repo to remove | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **orgSearchRunJobs**
> Array<ActionRunJob> orgSearchRunJobs()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let labels: string; //a comma separated list of run job labels to search for (optional) (default to undefined)

const { status, data } = await apiInstance.orgSearchRunJobs(
    org,
    labels
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **labels** | [**string**] | a comma separated list of run job labels to search for | (optional) defaults to undefined|


### Return type

**Array<ActionRunJob>**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | RunJobList is a list of action run jobs |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |

[[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)

# **orgUnblockUser**
> orgUnblockUser()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the org (default to undefined)
let username: string; //username of the user (default to undefined)

const { status, data } = await apiInstance.orgUnblockUser(
    org,
    username
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the org | defaults to undefined|
| **username** | [**string**] | username of the user | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **orgUpdateAvatar**
> orgUpdateAvatar()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    UpdateUserAvatarOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let body: UpdateUserAvatarOption; // (optional)

const { status, data } = await apiInstance.orgUpdateAvatar(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateUserAvatarOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **renameOrg**
> renameOrg(body)


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    RenameOrgOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //existing org name (default to undefined)
let body: RenameOrgOption; //

const { status, data } = await apiInstance.renameOrg(
    org,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **RenameOrgOption**|  | |
| **org** | [**string**] | existing org name | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

 - **Content-Type**: application/json, text/plain
 - **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | APIEmpty is an empty response |  -  |
|**403** | APIForbiddenError is a forbidden error response |  -  |
|**422** | APIValidationError is error format response related to input validation |  -  |

[[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)

# **teamSearch**
> TeamSearch200Response teamSearch()


### Example

```typescript
import {
    OrganizationApi,
    Configuration
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let q: string; //keywords to search (optional) (default to undefined)
let includeDesc: boolean; //include search within team description (defaults to true) (optional) (default to undefined)
let page: number; //page number of results to return (1-based) (optional) (default to undefined)
let limit: number; //page size of results (optional) (default to undefined)

const { status, data } = await apiInstance.teamSearch(
    org,
    q,
    includeDesc,
    page,
    limit
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **org** | [**string**] | name of the organization | defaults to undefined|
| **q** | [**string**] | keywords to search | (optional) defaults to undefined|
| **includeDesc** | [**boolean**] | include search within team description (defaults to true) | (optional) defaults to undefined|
| **page** | [**number**] | page number of results to return (1-based) | (optional) defaults to undefined|
| **limit** | [**number**] | page size of results | (optional) defaults to undefined|


### Return type

**TeamSearch200Response**

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | SearchResults of a successful search |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **updateOrgSecret**
> updateOrgSecret()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    CreateOrUpdateSecretOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of organization (default to undefined)
let secretname: string; //name of the secret (default to undefined)
let body: CreateOrUpdateSecretOption; // (optional)

const { status, data } = await apiInstance.updateOrgSecret(
    org,
    secretname,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **CreateOrUpdateSecretOption**|  | |
| **org** | [**string**] | name of organization | defaults to undefined|
| **secretname** | [**string**] | name of the secret | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when creating a secret |  -  |
|**204** | response when updating a secret |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

# **updateOrgVariable**
> updateOrgVariable()


### Example

```typescript
import {
    OrganizationApi,
    Configuration,
    UpdateVariableOption
} from 'berg';

const configuration = new Configuration();
const apiInstance = new OrganizationApi(configuration);

let org: string; //name of the organization (default to undefined)
let variablename: string; //name of the variable (default to undefined)
let body: UpdateVariableOption; // (optional)

const { status, data } = await apiInstance.updateOrgVariable(
    org,
    variablename,
    body
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **body** | **UpdateVariableOption**|  | |
| **org** | [**string**] | name of the organization | defaults to undefined|
| **variablename** | [**string**] | name of the variable | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[TOTPHeader](../README.md#TOTPHeader), [AuthorizationHeaderToken](../README.md#AuthorizationHeaderToken), [SudoHeader](../README.md#SudoHeader), [BasicAuth](../README.md#BasicAuth), [AccessToken](../README.md#AccessToken), [SudoParam](../README.md#SudoParam), [Token](../README.md#Token)

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**201** | response when updating an org-level variable |  -  |
|**204** | response when updating an org-level variable |  -  |
|**400** | APIError is error format response |  -  |
|**404** | APINotFound is a not found error response |  -  |

[[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)

