All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
createElementsConfig | POST /v2/elements/{proj_id}/{env_id}/config | Create Elements Config |
deleteElementsConfig | DELETE /v2/elements/{proj_id}/{env_id}/{elements_config_id} | Delete Elements Config |
getElementsConfig | GET /v2/elements/{proj_id}/{env_id}/config/{elements_config_id} | Get Elements Config |
getElementsConfigRuntime | GET /v2/elements/{proj_id}/{env_id}/config/{elements_config_id}/runtime | Get Elements Config Runtime |
getElementsTypeConfig | GET /v2/elements/{proj_id}/{env_id}/{element_type} | Get Elements Type Config |
listElementsConfigs | GET /v2/elements/{proj_id}/{env_id}/config | List Elements Configs |
updateElementsConfig | PATCH /v2/elements/{proj_id}/{env_id}/config/{elements_config_id} | Update Elements Config |
updateElementsTypePermissions | PATCH /v2/elements/{proj_id}/{env_id}/{element_type} | Update Elements Type Permissions |
ElementsConfigRead createElementsConfig(projId, envId, elementsConfigCreate)
Create Elements Config
Creates a new elements_config under the active organization.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val elementsConfigCreate : ElementsConfigCreate = // ElementsConfigCreate |
try {
val result : ElementsConfigRead = apiInstance.createElementsConfig(projId, envId, elementsConfigCreate)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#createElementsConfig")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#createElementsConfig")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
elementsConfigCreate | ElementsConfigCreate |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
deleteElementsConfig(elementsConfigId, projId, envId)
Delete Elements Config
Deletes the elements_config and all its related data.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val elementsConfigId : kotlin.String = elementsConfigId_example // kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the \"slug\").
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
try {
apiInstance.deleteElementsConfig(elementsConfigId, projId, envId)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#deleteElementsConfig")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#deleteElementsConfig")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
elementsConfigId | kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug"). | |
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). |
null (empty response body)
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ElementsConfigRead getElementsConfig(projId, envId, elementsConfigId)
Get Elements Config
Gets a single elements_config matching the given elements_config_id, if such elements_config exists.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val elementsConfigId : kotlin.String = elementsConfigId_example // kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the \"slug\").
try {
val result : ElementsConfigRead = apiInstance.getElementsConfig(projId, envId, elementsConfigId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#getElementsConfig")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#getElementsConfig")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
elementsConfigId | kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug"). |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ElementsConfigRuntimeRead getElementsConfigRuntime(projId, envId, elementsConfigId)
Get Elements Config Runtime
Gets a single elements_config matching the given elements_config_id, if such elements_config exists.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val elementsConfigId : kotlin.String = elementsConfigId_example // kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the \"slug\").
try {
val result : ElementsConfigRuntimeRead = apiInstance.getElementsConfigRuntime(projId, envId, elementsConfigId)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#getElementsConfigRuntime")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#getElementsConfigRuntime")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
elementsConfigId | kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug"). |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ElementsEnvTypeRead getElementsTypeConfig(projId, envId, elementType)
Get Elements Type Config
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val elementType : ElementsType = // ElementsType | Either the unique id of the elements_type, or the URL-friendly key of the elements_type (i.e: the \"slug\").
try {
val result : ElementsEnvTypeRead = apiInstance.getElementsTypeConfig(projId, envId, elementType)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#getElementsTypeConfig")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#getElementsTypeConfig")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
elementType | ElementsType | Either the unique id of the elements_type, or the URL-friendly key of the elements_type (i.e: the "slug"). |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
PaginatedResultElementsConfigRead listElementsConfigs(projId, envId, page, perPage)
List Elements Configs
Lists all the elements_configs under the active organization.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val page : kotlin.Int = 56 // kotlin.Int | Page number of the results to fetch, starting at 1.
val perPage : kotlin.Int = 56 // kotlin.Int | The number of results per page (max 100).
try {
val result : PaginatedResultElementsConfigRead = apiInstance.listElementsConfigs(projId, envId, page, perPage)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#listElementsConfigs")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#listElementsConfigs")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
page | kotlin.Int | Page number of the results to fetch, starting at 1. | [optional] [default to 1] |
perPage | kotlin.Int | The number of results per page (max 100). | [optional] [default to 30] |
PaginatedResultElementsConfigRead
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: Not defined
- Accept: application/json
ElementsConfigRead updateElementsConfig(elementsConfigId, projId, envId, elementsConfigUpdate)
Update Elements Config
Updates the elements_config.
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val elementsConfigId : kotlin.String = elementsConfigId_example // kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the \"slug\").
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val elementsConfigUpdate : ElementsConfigUpdate = // ElementsConfigUpdate |
try {
val result : ElementsConfigRead = apiInstance.updateElementsConfig(elementsConfigId, projId, envId, elementsConfigUpdate)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#updateElementsConfig")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#updateElementsConfig")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
elementsConfigId | kotlin.String | Either the unique id of the elements_config, or the URL-friendly key of the elements_config (i.e: the "slug"). | |
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
elementsConfigUpdate | ElementsConfigUpdate |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json
ElementsEnvTypeRead updateElementsTypePermissions(elementType, projId, envId, elementsEnvTypeUpdate)
Update Elements Type Permissions
// Import classes:
//import org.openapitools.client.infrastructure.*
//import org.openapitools.client.models.*
val apiInstance = ElementsConfigsApi()
val elementType : ElementsType = // ElementsType | Either the unique id of the elements_type, or the URL-friendly key of the elements_type (i.e: the \"slug\").
val projId : kotlin.String = projId_example // kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the \"slug\").
val envId : kotlin.String = envId_example // kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the \"slug\").
val elementsEnvTypeUpdate : ElementsEnvTypeUpdate = // ElementsEnvTypeUpdate |
try {
val result : ElementsEnvTypeRead = apiInstance.updateElementsTypePermissions(elementType, projId, envId, elementsEnvTypeUpdate)
println(result)
} catch (e: ClientException) {
println("4xx response calling ElementsConfigsApi#updateElementsTypePermissions")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ElementsConfigsApi#updateElementsTypePermissions")
e.printStackTrace()
}
Name | Type | Description | Notes |
---|---|---|---|
elementType | ElementsType | Either the unique id of the elements_type, or the URL-friendly key of the elements_type (i.e: the "slug"). | |
projId | kotlin.String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | |
envId | kotlin.String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | |
elementsEnvTypeUpdate | ElementsEnvTypeUpdate |
Configure HTTPBearer: ApiClient.accessToken = ""
- Content-Type: application/json
- Accept: application/json