All URIs are relative to https://app.build.io
| Method | HTTP request | Description |
|---|---|---|
| apiV1AppsIdBuildsPost | POST /api/v1/apps/{id}/builds | create build |
| apiV1MeGet | GET /api/v1/me | identity |
| apiV1OidcLoginGet | GET /api/v1/oidc-login | kubernetes oidc-login |
| app | GET /api/v1/apps/{id} | show app |
| apps | GET /api/v1/apps | list apps |
| configVars | GET /api/v1/apps/{app_id_or_name}/config-vars | list all config-vars |
| createApp | POST /api/v1/apps | create app |
| createNamespace | POST /api/v1/namespaces | create a namespace |
| deleteConfigVar | DELETE /api/v1/apps/{app_id_or_name}/config-vars/{key} | delete config-var |
| deleteNamespace | DELETE /api/v1/namespaces/{namespace_id_or_name} | delete a namespace |
| listDynos | GET /api/v1/apps/{id}/dynos/list | list dynos |
| namespace | GET /api/v1/namespaces/{namespace_id_or_name} | show namespace |
| namespaces | GET /api/v1/namespaces | list all namespaces |
| restartAllDynos | DELETE /api/v1/apps/{id}/dynos | restart all dynos |
| restartDynos | DELETE /api/v1/apps/{id}/dynos/{dyno} | restart specific dynos |
| setConfigVars | PATCH /api/v1/apps/{app_id_or_name}/config-vars | set or update config-vars |
| team | GET /api/v1/teams/{id} | show team |
| teams | GET /api/v1/teams | list all teams |
apiV1AppsIdBuildsPost(id, opts)
create build
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let id = "id_example"; // String | app id or name
let opts = {
'apiV1AppsIdBuildsPostRequest': new BuildIoApiV1.ApiV1AppsIdBuildsPostRequest() // ApiV1AppsIdBuildsPostRequest |
};
apiInstance.apiV1AppsIdBuildsPost(id, opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | app id or name | |
| apiV1AppsIdBuildsPostRequest | ApiV1AppsIdBuildsPostRequest | [optional] |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
ApiV1MeGet200Response apiV1MeGet()
identity
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
apiInstance.apiV1MeGet().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
ApiV1OidcLoginGet200Response apiV1OidcLoginGet(opts)
kubernetes oidc-login
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure API key authorization: api_key
let api_key = defaultClient.authentications['api_key'];
api_key.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix = 'Token';
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let opts = {
'region': "us-test-1" // String |
};
apiInstance.apiV1OidcLoginGet(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| region | String | [optional] |
- Content-Type: Not defined
- Accept: application/json
App app(id)
show app
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let id = "id_example"; // String | app id or name
apiInstance.app(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | app id or name |
- Content-Type: Not defined
- Accept: application/json
[App] apps(opts)
list apps
List all apps
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let opts = {
'teamId': "teamId_example" // String | team id or name
};
apiInstance.apps(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| teamId | String | team id or name | [optional] |
- Content-Type: Not defined
- Accept: application/json
{String: String} configVars(appIdOrName)
list all config-vars
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let appIdOrName = "appIdOrName_example"; // String | app id or name
apiInstance.configVars(appIdOrName).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| appIdOrName | String | app id or name |
{String: String}
- Content-Type: Not defined
- Accept: application/json
App createApp(opts)
create app
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let opts = {
'createAppRequest': new BuildIoApiV1.CreateAppRequest() // CreateAppRequest |
};
apiInstance.createApp(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| createAppRequest | CreateAppRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Namespace createNamespace(opts)
create a namespace
Create a namespace
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let opts = {
'createNamespaceRequest': new BuildIoApiV1.CreateNamespaceRequest() // CreateNamespaceRequest |
};
apiInstance.createNamespace(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| createNamespaceRequest | CreateNamespaceRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
deleteConfigVar(appIdOrName, key)
delete config-var
Delete a config-var
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let appIdOrName = "appIdOrName_example"; // String | app id or name
let key = "key_example"; // String | config var key
apiInstance.deleteConfigVar(appIdOrName, key).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| appIdOrName | String | app id or name | |
| key | String | config var key |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
deleteNamespace(namespaceIdOrName)
delete a namespace
Delete a namespace
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let namespaceIdOrName = "namespaceIdOrName_example"; // String | Namespace name or ID
apiInstance.deleteNamespace(namespaceIdOrName).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| namespaceIdOrName | String | Namespace name or ID |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Dyno] listDynos(id)
list dynos
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let id = "id_example"; // String | app id or name
apiInstance.listDynos(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | app id or name |
- Content-Type: Not defined
- Accept: application/json
Namespace namespace(namespaceIdOrName)
show namespace
Show a namespace
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let namespaceIdOrName = "namespaceIdOrName_example"; // String | Namespace name or ID
apiInstance.namespace(namespaceIdOrName).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| namespaceIdOrName | String | Namespace name or ID |
- Content-Type: Not defined
- Accept: application/json
[Namespace] namespaces()
list all namespaces
List all namespaces
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
apiInstance.namespaces().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
restartAllDynos(id)
restart all dynos
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let id = "id_example"; // String | app id or name
apiInstance.restartAllDynos(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | app id or name |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
restartDynos(id, dyno)
restart specific dynos
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let id = "id_example"; // String | app id or name
let dyno = "dyno_example"; // String | dyno name
apiInstance.restartDynos(id, dyno).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | app id or name | |
| dyno | String | dyno name |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
setConfigVars(appIdOrName, opts)
set or update config-vars
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let appIdOrName = "appIdOrName_example"; // String | app id or name
let opts = {
'requestBody': {key: "null"} // {String: String} |
};
apiInstance.setConfigVars(appIdOrName, opts).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| appIdOrName | String | app id or name | |
| requestBody | {String: String} | [optional] |
null (empty response body)
- Content-Type: application/json
- Accept: Not defined
Team team(id)
show team
Show a team
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
let id = "id_example"; // String | Team name or ID
apiInstance.team(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});| Name | Type | Description | Notes |
|---|---|---|---|
| id | String | Team name or ID |
- Content-Type: Not defined
- Accept: application/json
[Team] teams()
list all teams
List all teams
import BuildIoApiV1 from 'build_io_api_v1';
let defaultClient = BuildIoApiV1.ApiClient.instance;
// Configure Bearer access token for authorization: bearer
let bearer = defaultClient.authentications['bearer'];
bearer.accessToken = "YOUR ACCESS TOKEN"
// Configure OAuth2 access token for authorization: oauth2
let oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = 'YOUR ACCESS TOKEN';
let apiInstance = new BuildIoApiV1.DefaultApi();
apiInstance.teams().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json