openapi: 3.0.1
info:
title: CodeNOW API
description: Public CodeNOW API
version: application/vnd.codenow.v1+json
servers:
- url: https://api.cloud.codenow.com
paths:
/applications:
get:
tags:
- Applications
summary: List applications
description: |-
Lists applications. Returns a compact entry per application — related deployment targets are
intentionally omitted (fetch them per-application via
GET /applications/{applicationId}/deployment-targets). Labels are loaded only when
requested via expand=labels.
operationId: applications-list
parameters:
- name: expand
in: query
description: "Sub-resources to include on each entry. Supported: `labels`."
explode: false
schema:
type: array
nullable: true
items:
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: applications-list 200 response
content:
application/vnd.codenow.v2+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationListResponseV2"
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationResponse"
example: null
post:
tags:
- Applications
summary: Create an application
description: |-
Creates a new application. Related deployment targets are expressed as access policies on
`relatedEnvironments` and `relatedLabels` — each `{mode, ids}` where `mode` selects between
`ANY` (no constraint), `DENY_ALL` (none allowed) and `WHITELIST` (only listed ids allowed);
`ids` is meaningful only when `mode = WHITELIST`.
operationId: application-create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
description: "Application name, optional description, and optional list of\
\ related environments."
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationCreateRequestV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationCreateRequest"
examples:
create-application-v1:
summary: Create application 'my-app' related to env-prod
value:
name: my-app
description: Customer-facing storefront
relatedEnvironments:
- id: env-prod
production: true
example: null
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-create 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationResponseV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationResponse"
example: null
/applications/{applicationId}:
get:
tags:
- Applications
summary: Get an application
description: |-
Gets an application detail. Optional related sub-resources are loaded only when requested via the
`expand` query parameter. Supported values: `deploymentTargets` (populates `deploymentTargets` —
the access policies and resolved items for related environments and labels), `labels` (populates
`resourceLabels`). When the parameter is omitted, only the base application fields are returned.
operationId: applications-get
parameters:
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: expand
in: query
description: "Sub-resources to include in the response. Supported: `deploymentTargets`,\
\ `labels`."
explode: false
schema:
type: array
nullable: true
items:
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: applications-get 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationResponseV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationResponse"
example: null
put:
tags:
- Applications
summary: Update an application
description: |-
Updates specific settings for an application. If a setting is not specified, it will not be updated.
Related deployment targets are expressed as access policies on `relatedEnvironments` and
`relatedLabels` — each `{mode, ids}` where `mode` selects between `ANY` (no constraint),
`DENY_ALL` (none allowed) and `WHITELIST` (only listed ids allowed); `ids` is meaningful only
when `mode = WHITELIST`. Each policy is optional and, when present, replaces the existing policy
wholesale; omitted policies are left unchanged.
operationId: applications-update
parameters:
- name: applicationId
in: path
required: true
schema:
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
description: Fields to update. At least one of `description` or `relatedEnvironments`
must be set; omitted fields are left unchanged.
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationUpdateRequestV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationUpdateRequest"
examples:
update-application-v1:
summary: Update description and related environments
value:
description: Customer-facing storefront (EU)
relatedEnvironments:
- id: env-prod
production: true
- id: env-staging
production: false
example: null
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: applications-update 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/OkResponse"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
example: null
delete:
tags:
- Applications
summary: Delete an application
description: "All resources associated with the application will be deleted,\
\ including its components"
operationId: applications-delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: applications-delete 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/components:
get:
tags:
- Application Components
summary: List application components
description: Lists components for the specified application.
operationId: application-components-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: allowedOps
in: query
required: false
explode: false
schema:
type: array
items:
type: string
default:
- detail
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-list 200 response
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationComponentResponse"
post:
tags:
- Application Components
summary: Create an application component
description: Creates a new component in the specified application.
operationId: application-components-create
parameters:
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCreateRequestV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCreateRequest"
example: null
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-create 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCreateResponse"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCreateResponse"
example: null
/applications/{applicationId}/components/{applicationComponentId}:
get:
tags:
- Application Components
summary: Get an application component
description: Gets a component detail for the specified application
operationId: application-components-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-get 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentResponse"
put:
tags:
- Application Components
summary: Update an application component
description: "Updates specific settings for an application component. If a setting\
\ is not specified, it will not be updated."
operationId: application-components-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentUpdateRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-update 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
delete:
tags:
- Application Components
summary: Delete an application component
description: All resources associated with the component will be deleted
operationId: application-components-delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-delete 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/components/{applicationComponentId}/builds:
get:
tags:
- Application Component Builds
summary: List application component builds.
operationId: application-components-builds-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
- name: applicationComponentId
in: path
required: true
schema:
type: string
- name: page
in: query
required: false
explode: false
schema:
minimum: 0
type: integer
format: int32
default: 0
- name: size
in: query
required: false
explode: false
schema:
minimum: 0
exclusiveMinimum: true
type: integer
format: int32
default: 10
responses:
"200":
description: Page of builds
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/Page_ApplicationComponentBuildResponse_"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Application Component Builds
summary: Trigger an application component build.
operationId: application-components-builds-trigger
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
- name: applicationComponentId
in: path
required: true
schema:
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildRequest"
required: true
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/components/{applicationComponentId}/builds/{id}:
get:
tags:
- Application Component Builds
summary: Get detail of an application component build.
operationId: application-components-builds-detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
- name: applicationComponentId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
- name: expand
in: query
explode: false
schema:
type: array
nullable: true
items:
$ref: "#/components/schemas/Expand_1"
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-builds-detail 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildResponse"
/applications/{applicationId}/components/{applicationComponentId}/builds/{id}/cancel:
patch:
tags:
- Application Component Builds
summary: Cancel an application component build.
operationId: application-components-builds-cancel
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
- name: applicationComponentId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/components/{applicationComponentId}/builds/{id}/labels/attach:
post:
tags:
- Application Component Builds
summary: Attach a label to an application component build
description: "Attaches a label to the build. If labelId is not provided, a new\
\ label will be created using text and color."
operationId: application-components-builds-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-builds-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/applications/{applicationId}/components/{applicationComponentId}/builds/{id}/labels/detach:
post:
tags:
- Application Component Builds
summary: Detach a label from an application component build
description: Detaches a label from the build.
operationId: application-components-builds-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-builds-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/components/{applicationComponentId}/builds/{id}/rerun:
post:
tags:
- Application Component Builds
summary: Rerun a failed application component build.
operationId: application-components-builds-rerun
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
- name: applicationComponentId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/components/{applicationComponentId}/connections:
get:
tags:
- Application Component Connections
summary: Get application component connections
description: |-
Retrieves the configuration of connected services for given component.
Either (build) version or (git) branch must be provided as query parameter to specify the requested configuration version.
operationId: application-component-connections
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: version
in: query
explode: false
schema:
type: string
nullable: true
- name: branch
in: query
explode: false
schema:
type: string
nullable: true
responses:
"422":
description: Unprocessable .codenow.config.yaml
"200":
description: 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentConnectionsConfigResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Application Component Connections
summary: Update application component connections
operationId: application-component-connections-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ConnectionsUpdateRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-component-connections-update 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/components/{applicationComponentId}/labels/attach:
post:
tags:
- Application Components
summary: Attach a label to an application component
description: "Attaches a label to the application component. If labelId is not\
\ provided, a new label will be created using text and color."
operationId: application-components-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/applications/{applicationId}/components/{applicationComponentId}/labels/detach:
post:
tags:
- Application Components
summary: Detach a label from an application component
description: Detaches a label from the application component.
operationId: application-components-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-components-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/components/{applicationComponentId}/runtime-config:
get:
tags:
- Application Component Runtime Configurations
summary: Get application component runtime configuration
description: |-
Retrieves the runtime configuration detail for given component. Either (build) version or (git) branch must be provided as query parameter
to specify the requested runtime configuration version.
operationId: application-component-runtime-configuration-detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: version
in: query
explode: false
schema:
type: string
nullable: true
- name: branch
in: query
explode: false
schema:
type: string
nullable: true
responses:
"422":
description: Unprocessable .codenow.config.yaml
"200":
description: 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentRuntimeConfigResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Application Component Runtime Configurations
summary: Update application component runtime configuration
operationId: application-component-runtime-configuration-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/RuntimeConfig"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-component-runtime-configuration-update 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/components/{applicationComponentId}/triggers:
get:
tags:
- Application Component Triggers
summary: Get application component codenow triggers
operationId: application-component-triggers
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Application component triggers response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodenowTriggersResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Application Component Triggers
summary: Update application component codenow triggers
operationId: application-component-triggers-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: applicationComponentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodenowTriggersUpdateRequest"
required: true
responses:
"200":
description: Component triggers were updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/components/{componentId}/ci-config:
get:
tags:
- Application Component CI configurations
summary: Get a CI config
description: The operation allows you to retrieve details about a CI config
of a specific application component and branch.
operationId: application-components-ci-configs-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: componentId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
responses:
"200":
description: CI config detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCiConfigResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Application Component CI configurations
summary: Update CI config
description: The operation allows you to update CI config of a specific application
component and branch.
operationId: application-components-ci-configs-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: componentId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCiConfigUpdateRequest"
required: true
responses:
"200":
description: CI config detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/components/{componentId}/ci-config/settings:
get:
tags:
- Application Component CI configurations
summary: Get CI config settings
description: The operation allows you to retrieve CI config settings.
operationId: application-components-ci-configs-settings-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: componentId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: CI config settings
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCiConfigSettingsResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Application Component CI configurations
summary: Update CI config settings
description: The operation allows you to update CI config settings.
operationId: application-components-ci-configs-settings-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: componentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationComponentCiConfigSettingsUpdateRequest"
required: true
responses:
"200":
description: CI config settings updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/components/{componentId}/releases:
get:
tags:
- Application Component Releases
summary: Retrieve a list of application component releases.
operationId: application-component-releases-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: componentId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: List of application component releases
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationComponentRelease"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/applications/{applicationId}/deployment-configs:
get:
tags:
- Application Deployment Configurations
summary: List application deployment configurations
operationId: application-deployment-configs-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: includePreview
in: query
explode: false
schema:
type: boolean
default: false
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-configs-list 200 response
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationDeploymentConfigListItemResponse"
post:
tags:
- Application Deployment Configurations
summary: Create or update application deployment configuration
description: Create new application deployment configuration or update an existing
one.
operationId: application-deployment-config-store
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationDeploymentConfigStoreRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-config-store 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/deployment-configs/{version}:
get:
tags:
- Application Deployment Configurations
summary: Get application deployment configuration
description: "Get application deployment configuration detail. If no environment\
\ ID is specified, a default configuration will be returned."
operationId: application-deployment-config-detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: version
in: path
required: true
schema:
minLength: 1
type: string
- name: environmentId
in: query
explode: false
schema:
type: string
nullable: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-config-detail 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationDeploymentConfigResponse"
delete:
tags:
- Application Deployment Configurations
summary: Delete existing application deployment configuration
operationId: application-deployment-config-delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: version
in: path
required: true
schema:
minLength: 1
type: string
- name: environmentId
in: query
required: true
explode: false
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-config-delete 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/deployment-targets:
get:
tags:
- Applications
summary: Get related deployment targets for application
description: |-
Returns the composite related-deployment-targets view for the application — the access policy (`mode`)
and resolved `items` for both environments and labels. `mode = ANY` means no constraint; `DENY_ALL`
means no targets of that kind are allowed; `WHITELIST` means only the listed ids are allowed.
operationId: application-deployment-targets-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-targets-get 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/RelatedDeploymentTargetsResponse"
/applications/{applicationId}/deployments:
get:
tags:
- Application Deployments
summary: List application deployments
operationId: application-deployments-list
parameters:
- name: expand
in: query
description: "Optional sub-resources to load on each entry. Supported: `pendingDeployments`,\
\ `jobRuns`, `routingRules`, `packageLabels`."
explode: false
schema:
type: array
nullable: true
items:
type: string
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployments-list 200 response
content:
application/vnd.codenow.v2+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationDeploymentResponseV2"
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationDeploymentResponse"
example: null
post:
tags:
- Application Deployments
summary: Deploy application to environment
operationId: application-deployment-create
parameters:
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
description: Deployment target environment and application package version
to deploy.
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationDeploymentCreateRequestV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationDeploymentCreateRequest"
examples:
deploy-application-v1:
summary: Deploy version 1.4.0 to env-prod
value:
environmentId: env-prod
version: 1.4.0
example: null
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-create 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/JobQueueResponse"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
example: null
/applications/{applicationId}/deployments/{environmentId}:
get:
tags:
- Application Deployments
summary: Get application deployment detail
operationId: application-deployment-detail
parameters:
- name: environmentId
in: path
description: Target environment ID
required: true
schema:
minLength: 1
type: string
- name: expand
in: query
description: "Optional sub-resources to include in the response. Supported:\
\ `pendingDeployments`, `jobRuns`, `routingRules`, `packageLabels`."
explode: false
schema:
type: array
nullable: true
items:
type: string
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-detail 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/ApplicationDeploymentResponseV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationDeploymentResponse"
example: null
put:
tags:
- Application Deployments
summary: Sync application deployment
operationId: application-deployment-sync
parameters:
- name: environmentId
in: path
description: Target environment ID
required: true
schema:
minLength: 1
type: string
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-sync 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/OkResponse"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
example: null
delete:
tags:
- Application Deployments
summary: Undeploy application from environment
operationId: application-deployment-delete
parameters:
- name: environmentId
in: path
description: Target environment ID
required: true
schema:
minLength: 1
type: string
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-deployment-delete 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/OkResponse"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
example: null
/applications/{applicationId}/labels/attach:
post:
tags:
- Applications
summary: Attach a label to an application
description: "Attaches a label to the application. If labelId is not provided,\
\ a new label will be created using text and color."
operationId: application-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/applications/{applicationId}/labels/detach:
post:
tags:
- Applications
summary: Detach a label from an application
description: Detaches a label from the application.
operationId: application-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/packages:
get:
tags:
- Application Packages
summary: List application packages
operationId: application_packages-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: includeArchived
in: query
explode: false
schema:
type: boolean
default: false
- name: expand
in: query
explode: false
schema:
type: array
nullable: true
items:
$ref: "#/components/schemas/Expand"
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application_packages-list 200 response
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ApplicationPackageResponse"
post:
tags:
- Application Packages
summary: Create a new application package
operationId: application_packages-create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationPackageCreateRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application_packages-create 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationPackageResponse"
/applications/{applicationId}/packages/{version}:
get:
tags:
- Application Packages
summary: Get detail of an application package
operationId: application_packages-detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: version
in: path
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application_packages-detail 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationPackageResponse"
delete:
tags:
- Application Packages
summary: Delete an application package
operationId: application_packages-delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: version
in: path
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application_packages-delete 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/packages/{version}/labels/attach:
post:
tags:
- Application Packages
summary: Attach a label to an application package
description: "Attaches a label to the application package. If labelId is not\
\ provided, a new label will be created using text and color."
operationId: application-packages-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: version
in: path
description: Package version
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationBuildLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-packages-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/applications/{applicationId}/packages/{version}/labels/detach:
post:
tags:
- Application Packages
summary: Detach a label from an application package
description: Detaches a label from the application package.
operationId: application-packages-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: applicationId
in: path
description: Application ID
required: true
schema:
minLength: 1
type: string
- name: version
in: path
description: Package version
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ApplicationBuildLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-packages-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/applications/{applicationId}/related-environments:
get:
tags:
- Applications
summary: List effective deployment environments for application
description: |-
Returns the effective set of deployment environments for the application — environments matched by
the direct environment policy and, when `expand=labelEnvironments`, additionally those resolved from
the application's label policy. Each item carries a `source` marker (DIRECT or LABEL); direct entries
shadow label-resolved entries with the same id.
Supported `expand` values:
status — resolve each environment's status against its cluster (extra read);
labelEnvironments — also resolve and merge environments from the application's label policy.
To update the underlying access policies, use PUT /applications/{applicationId}.
operationId: application-related-environments-list
parameters:
- name: applicationId
in: path
required: true
schema:
minLength: 1
type: string
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: expand
in: query
description: "Optional expands. Supported: `status`, `labelEnvironments`."
explode: false
schema:
type: array
nullable: true
items:
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: application-related-environments-list 200 response
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/DeploymentEnvironmentsResponse"
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/Environment"
example: null
/ci-pipelines:
get:
tags:
- CI pipelines
summary: List CI pipelines
description: Lists CI pipelines.
operationId: ci-pipelines-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: defaultPipelineType
in: query
required: true
explode: false
schema:
$ref: "#/components/schemas/DefaultPipelineType"
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: ci-pipelines-list 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/PipelinesResponse"
/ci/components/{componentId}/ci:
get:
tags:
- CI Component Support API
summary: Get CodeNOW YAML for the component
operationId: ci-components-codenow-yaml
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: componentId
in: path
required: true
schema:
type: string
- name: branch
in: query
required: true
explode: false
schema:
type: string
responses:
"200":
description: CodeNOW YAML downloaded successfully
content:
application/vnd.codenow.v1+text:
schema:
type: object
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/ci/components/{componentId}/ci/dockerfile:
get:
tags:
- CI Component Support API
summary: Get Dockerfile for the component
operationId: ci-components-dockerfile
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: componentId
in: path
required: true
schema:
type: string
- name: branch
in: query
required: true
explode: false
schema:
type: string
responses:
"200":
description: Dockerfile downloaded successfully
content:
application/vnd.codenow.v1+text:
schema:
type: object
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/ci/components/{componentId}/ci/env:
get:
tags:
- CI Component Support API
summary: Get build environment variables for the component
operationId: ci-components-environment-variables-yaml
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: componentId
in: path
required: true
schema:
type: string
- name: branch
in: query
required: true
explode: false
schema:
type: string
- name: correlationId
in: query
required: true
explode: false
schema:
type: string
responses:
"200":
description: Environment build variables downloaded successfully
content:
application/vnd.codenow.v1+text:
schema:
type: object
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/ci/components/{componentId}/cicd:
get:
tags:
- CI Component Support API
summary: Download helm chart for the component as zip archive
operationId: ci-components-helm-chart
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: componentId
in: path
required: true
schema:
type: string
- name: branch
in: query
required: true
explode: false
schema:
type: string
responses:
"200":
description: Helm chart downloaded successfully
content:
application/vnd.codenow.v1+octet-stream:
schema:
type: object
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/ci/webhook:
post:
tags:
- CI Webhooks
summary: Webhook receiver for External CI Events
description: |
External CI communication endpoint, provides a way to send CI events to CodeNow.
Supported events:
Start event: indicates the start of a pipeline run. (once per run).
Result event: event with a payload with results of the pipeline run (git information,
container/helm artifacts produced, etc).
End event: indicates the end of a pipeline run (once per run).
To use this interface, you need to have a valid CI key with the scope corresponding to the component (or with account scope).
operationId: ci-webhook
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodeNowCIEvent"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: ci-webhook 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/clusters:
get:
tags:
- Clusters
summary: List of clusters
description: The operation allows you to retrieve a collection of all available
clusters. A cluster constitutes a managed group of interconnected worker nodes
that run containerized applications.
operationId: cluster_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: allowedOps
in: query
required: false
explode: false
schema:
type: array
items:
type: string
default:
- detail
responses:
"200":
description: List of clusters
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/Cluster"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers:
get:
tags:
- Containers
summary: List of containers
description: "The operation allows you to retrieve a collection of all available\
\ containers. A container constitutes a collection of pre-written and reusable\
\ code components, functions, and modules that enhance software development\
\ efficiency."
operationId: container_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: allowedOps
in: query
required: false
explode: false
schema:
type: array
items:
type: string
default:
- detail
responses:
"200":
description: List of containers
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ContainerComponentResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Containers
summary: Create a container
description: "The operation allows you to create a new container. A container\
\ constitutes a collection of pre-written and reusable code components, functions,\
\ and modules that enhance software development efficiency."
operationId: container_create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerCreateRequest"
required: true
responses:
"200":
description: Container detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerCreateResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}:
get:
tags:
- Containers
summary: Get a container
description: "The operation allows you to retrieve details about a specific\
\ container. A container constitutes a collection of pre-written and reusable\
\ code components, functions, and modules that enhance software development\
\ efficiency."
operationId: container_get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
type: string
responses:
"200":
description: Container detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerComponentResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Containers
summary: Update a container
description: "The operation allows you to update a specific container, changing\
\ some of its properties. Any properties not specified in the request body\
\ will stay unchanged."
operationId: container_update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerUpdateRequest"
required: true
responses:
"200":
description: Container was updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
delete:
tags:
- Containers
summary: Delete a container
description: The operation allows you to remove a specific container from the
system permanently.
operationId: container_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
type: string
responses:
"200":
description: Container was deleted.
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/builds:
get:
tags:
- Container Builds
summary: List container builds.
operationId: container-builds-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: page
in: query
required: false
explode: false
schema:
minimum: 0
type: integer
format: int32
default: 0
- name: size
in: query
required: false
explode: false
schema:
minimum: 0
exclusiveMinimum: true
type: integer
format: int32
default: 10
responses:
"200":
description: Page of builds
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/Page_ContainerBuildResponse_"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Container Builds
summary: Trigger a container build.
operationId: container-builds-trigger
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildRequest"
required: true
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/builds/{id}:
get:
tags:
- Container Builds
summary: Get a container build detail
operationId: container-builds-detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
- name: expand
in: query
explode: false
schema:
type: array
nullable: true
items:
$ref: "#/components/schemas/Expand_1"
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/builds/{id}/cancel:
patch:
tags:
- Container Builds
summary: Cancel a container build.
operationId: container-builds-cancel
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/builds/{id}/labels/attach:
post:
tags:
- Container Builds
summary: Attach a label to a container build
description: "Attaches a label to the build. If labelId is not provided, a new\
\ label will be created using text and color."
operationId: container-builds-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: container-builds-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/containers/{containerId}/builds/{id}/labels/detach:
post:
tags:
- Container Builds
summary: Detach a label from a container build
description: Detaches a label from the build.
operationId: container-builds-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: container-builds-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/containers/{containerId}/builds/{id}/rerun:
post:
tags:
- Container Builds
summary: Rerun a failed container build.
operationId: container-builds-rerun
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/ci-config:
get:
tags:
- Container CI configurations
summary: Get CI config
description: The operation allows you to retrieve details about a CI config
of a specific container and branch.
operationId: container-ci-configs-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
responses:
"200":
description: CI config detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerCiConfigResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Container CI configurations
summary: Update CI config
description: The operation allows you to update CI config of a specific container
and branch.
operationId: container-ci-configs-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerCiConfigUpdateRequest"
required: true
responses:
"200":
description: CI config detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/ci-config/settings:
get:
tags:
- Container CI configurations
summary: Get CI config settings
description: The operation allows you to retrieve CI config settings.
operationId: container-ci-configs-settings-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: CI config settings
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerCiConfigSettingsResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Container CI configurations
summary: Update CI config settings
description: The operation allows you to update CI config settings.
operationId: container-ci-configs-settings-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerCiConfigSettingsUpdateRequest"
required: true
responses:
"200":
description: CI config settings updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/labels/attach:
post:
tags:
- Containers
summary: Attach a label to a container
description: "Attaches a label to the container. If labelId is not provided,\
\ a new label will be created using text and color."
operationId: container-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: container-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/containers/{containerId}/labels/detach:
post:
tags:
- Containers
summary: Detach a label from a container
description: Detaches a label from the container.
operationId: container-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ContainerLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: container-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/containers/{containerId}/releases:
get:
tags:
- Container Releases
summary: Retrieve a list of container releases.
operationId: container-releases-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: List of container releases
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ContainerRelease"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/containers/{containerId}/triggers:
get:
tags:
- Container Triggers
summary: Get container codenow triggers
operationId: container-triggers
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Container triggers response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodenowTriggersResponse_1"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Container Triggers
summary: Update container codenow triggers
operationId: container-triggers-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: containerId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodenowTriggersUpdateRequest_1"
required: true
responses:
"200":
description: Container triggers were updated.
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/environments:
get:
tags:
- Environments
summary: List of environments
description: |-
The operation allows you to retrieve a collection of all available environments.
Environments are isolated spaces where users can interact with specific resources and data.
operationId: environment_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: expand
in: query
description: Allows to expand additional data
required: false
explode: false
schema:
type: array
items:
$ref: "#/components/schemas/Expand_2"
default:
- ""
responses:
"200":
description: List of environments
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/Environment"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Environments
summary: Create an environment
description: |-
The operation allows you to create a new environment.
Environments are isolated spaces where users can interact with specific resources and data.
operationId: environment_create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/EnvironmentCreateRequest"
required: true
responses:
"200":
description: Environment detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/Environment"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/environments/{environmentId}:
get:
tags:
- Environments
summary: Get an environment
description: The operation allows you to retrieve details about a specific environment.
Environments are isolated spaces where users can interact with specific resources
and data.
operationId: environment_get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: environmentId
in: path
required: true
schema:
type: string
- name: expand
in: query
explode: false
schema:
type: array
items:
$ref: "#/components/schemas/Expand_2"
default:
- ""
responses:
"200":
description: Environment detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/Environment"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
delete:
tags:
- Environments
summary: Delete an environment
description: "The operation allows you to remove a specific environment from\
\ the system permanently. However, before you can delete the environment,\
\ you must ensure that all associated resources and data within that environment\
\ are removed. If any resources remain, the operation will fail, and the environment\
\ will not be deleted."
operationId: environment_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: environmentId
in: path
required: true
schema:
type: string
responses:
"200":
description: Environment was deleted.
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/environments/{environmentId}/labels/attach:
post:
tags:
- Environments
summary: Attach a label to an environment
description: "Attaches a label to the environment. If labelId is not provided,\
\ a new label will be created using text and color."
operationId: environment-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: environmentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/EnvironmentLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: environment-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/environments/{environmentId}/labels/detach:
post:
tags:
- Environments
summary: Detach a label from an environment
description: Detaches a label from the environment.
operationId: environment-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: environmentId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/EnvironmentLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: environment-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/labels:
get:
tags:
- Labels
summary: List labels
description: Lists all labels for the current account.
operationId: labels-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: labels-list 200 response
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/LabelResponse"
post:
tags:
- Labels
summary: Create a label
description: Creates a new label. Optionally attaches it to specified resources.
operationId: label-create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelCreateRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-create 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/labels/{labelId}:
get:
tags:
- Labels
summary: Get a label
description: Gets label detail including list of attached resources.
operationId: label-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: labelId
in: path
description: Label ID
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-get 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/DetailedLabelResponse"
put:
tags:
- Labels
summary: Update a label
description: Updates label properties. Only provided fields will be updated.
operationId: label-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: labelId
in: path
description: Label ID
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelUpdateRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-update 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
delete:
tags:
- Labels
summary: Delete a label
description: Deletes a label and removes all its resource associations.
operationId: label-delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: labelId
in: path
description: Label ID
required: true
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-delete 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/labels/{labelId}/attach:
post:
tags:
- Labels
summary: Attach a resource to a label
description: Attaches a resource of specified type and ID to the label.
operationId: label-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: labelId
in: path
description: Label ID
required: true
schema:
minLength: 1
type: string
- name: resourceType
in: query
description: Resource type
required: true
explode: false
schema:
$ref: "#/components/schemas/LabelResourceType"
- name: resourceId
in: query
description: Resource ID
required: true
explode: false
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/labels/{labelId}/detach:
post:
tags:
- Labels
summary: Detach a resource from a label
description: Detaches a resource of specified type and ID from the label.
operationId: label-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: labelId
in: path
description: Label ID
required: true
schema:
minLength: 1
type: string
- name: resourceType
in: query
description: Resource type
required: true
explode: false
schema:
$ref: "#/components/schemas/LabelResourceType"
- name: resourceId
in: query
description: Resource ID
required: true
explode: false
schema:
minLength: 1
type: string
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/labels/{labelId}/multi:
post:
tags:
- Labels
summary: Bulk attach/detach resources
description: Performs bulk attach and detach operations for resources on a label.
Processed as a background job.
operationId: label-multi
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: labelId
in: path
description: Label ID
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelMultiRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: label-multi 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelMultiResponse"
/libraries:
get:
tags:
- Libraries
summary: List of libraries
description: "The operation allows you to retrieve a collection of all available\
\ libraries. A library constitutes a collection of pre-written and reusable\
\ code components, functions, and modules that enhance software development\
\ efficiency."
operationId: library_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: allowedOps
in: query
required: false
explode: false
schema:
type: array
items:
type: string
default:
- detail
responses:
"200":
description: List of libraries
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/LibraryComponentResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Libraries
summary: Create a library
description: "The operation allows you to create a new library. A library constitutes\
\ a collection of pre-written and reusable code components, functions, and\
\ modules that enhance software development efficiency."
operationId: library_create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/LibraryCreateRequestV2"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryCreateRequest"
example: null
required: true
responses:
"200":
description: Library detail
content:
application/vnd.codenow.v2+json:
schema:
$ref: "#/components/schemas/LibraryCreateResponse"
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryCreateResponse"
example: null
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}:
get:
tags:
- Libraries
summary: Get a library
description: "The operation allows you to retrieve details about a specific\
\ library. A library constitutes a collection of pre-written and reusable\
\ code components, functions, and modules that enhance software development\
\ efficiency."
operationId: library_get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
type: string
responses:
"200":
description: Library detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryComponentResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Libraries
summary: Update a library
description: "The operation allows you to update a specific library, changing\
\ some of its properties. Any properties not specified in the request body\
\ will stay unchanged."
operationId: library_update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryUpdateRequest"
required: true
responses:
"200":
description: Library was updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
delete:
tags:
- Libraries
summary: Delete a library
description: The operation allows you to remove a specific library from the
system permanently.
operationId: library_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
type: string
responses:
"200":
description: Library was deleted.
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/builds:
get:
tags:
- Library Builds
summary: List library builds.
operationId: library-builds-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: page
in: query
required: false
explode: false
schema:
minimum: 0
type: integer
format: int32
default: 0
- name: size
in: query
required: false
explode: false
schema:
minimum: 0
exclusiveMinimum: true
type: integer
format: int32
default: 10
responses:
"200":
description: Page of builds
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/Page_LibraryBuildResponse_"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Library Builds
summary: Trigger a library build.
operationId: library-builds-trigger
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildRequest"
required: true
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/builds/{id}:
get:
tags:
- Library Builds
summary: Get a library build detail
operationId: library-builds-detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
- name: expand
in: query
explode: false
schema:
type: array
nullable: true
items:
$ref: "#/components/schemas/Expand_1"
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/builds/{id}/cancel:
patch:
tags:
- Library Builds
summary: Cancel a library build.
operationId: library-builds-cancel
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/builds/{id}/labels/attach:
post:
tags:
- Library Builds
summary: Attach a label to a library build
description: "Attaches a label to the build. If labelId is not provided, a new\
\ label will be created using text and color."
operationId: library-builds-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: library-builds-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/libraries/{libraryId}/builds/{id}/labels/detach:
post:
tags:
- Library Builds
summary: Detach a label from a library build
description: Detaches a label from the build.
operationId: library-builds-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: id
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: library-builds-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/libraries/{libraryId}/builds/{id}/rerun:
post:
tags:
- Library Builds
summary: Rerun a failed library build.
operationId: library-builds-rerun
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
type: string
- name: id
in: path
required: true
schema:
type: string
responses:
"200":
description: Detail of the build
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryBuildResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/ci-config:
get:
tags:
- Library CI configurations
summary: Get CI config
description: The operation allows you to retrieve details about a CI config
of a specific library and branch.
operationId: libraries-ci-configs-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
responses:
"200":
description: CI config detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryCiConfigResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Library CI configurations
summary: Update CI config
description: The operation allows you to update CI config of a specific library
and branch.
operationId: libraries-ci-configs-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
- name: branch
in: query
required: true
explode: false
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryCiConfigUpdateRequest"
required: true
responses:
"200":
description: CI config detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/ci-config/settings:
get:
tags:
- Library CI configurations
summary: Get CI config settings
description: The operation allows you to retrieve CI config settings.
operationId: library-ci-configs-settings-get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: CI config settings
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryCiConfigSettingsResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Library CI configurations
summary: Update CI config settings
description: The operation allows you to update CI config settings.
operationId: libraries-ci-configs-settings-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryCiConfigSettingsUpdateRequest"
required: true
responses:
"200":
description: CI config settings updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/labels/attach:
post:
tags:
- Libraries
summary: Attach a label to a library
description: "Attaches a label to the library. If labelId is not provided, a\
\ new label will be created using text and color."
operationId: library-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: library-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/libraries/{libraryId}/labels/detach:
post:
tags:
- Libraries
summary: Detach a label from a library
description: Detaches a label from the library.
operationId: library-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LibraryLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: library-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/libraries/{libraryId}/releases:
get:
tags:
- Library Releases
summary: Retrieve a list of library releases.
operationId: library-releases-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: List of library releases
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/LibraryRelease"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/libraries/{libraryId}/triggers:
get:
tags:
- Library Triggers
summary: Get library codenow triggers
operationId: library-triggers
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Library triggers response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodenowTriggersResponse_2"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Library Triggers
summary: Update library codenow triggers
operationId: library-triggers-update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: libraryId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/CodenowTriggersUpdateRequest_2"
required: true
responses:
"200":
description: Library triggers were updated.
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/managed-services:
get:
tags:
- Managed Services
summary: List of managed services
description: The operation allows you to retrieve a collection of all available
managed services. Managed services are specialized resources provided and
maintained by CodeNOW designed to streamline and handle specific functions.
You can limit the results to a single deployment environment by providing
an environmentId query parameter.
operationId: managed_service_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: environmentId
in: query
explode: false
schema:
type: string
nullable: true
responses:
"200":
description: List of managed services
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ManagedServiceListItem"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Managed Services
summary: Create a managed service
description: The operation allows you to create a new managed service.Managed
services are specialized resources provided and maintained by CodeNOW designed
to streamline and handle specific functions.
operationId: managed_service_create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedServiceCreateRequest"
required: true
responses:
"200":
description: Managed service detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedServiceCreateResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/managed-services/{serviceId}:
get:
tags:
- Managed Services
summary: Get a managed service
description: The operation allows you to retrieve details about a specific managed
service. Managed services are specialized resources provided and maintained
by CodeNOW designed to streamline and handle specific functions.
operationId: managed_service_get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: serviceId
in: path
required: true
schema:
type: string
responses:
"200":
description: Managed service detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedService"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
put:
tags:
- Managed Services
summary: Update a managed service
description: "The operation allows you to update a specific managed service,\
\ changing some of its properties. Any properties not specified in the request\
\ body will stay unchanged."
operationId: managed_service_update
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: serviceId
in: path
required: true
schema:
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedServiceUpdateRequest"
required: true
responses:
"200":
description: Managed service was updated
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
delete:
tags:
- Managed Services
summary: Delete a managed service
description: The operation allows you to remove a specific managed service from
the system permanently.
operationId: managed_service_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: serviceId
in: path
required: true
schema:
type: string
responses:
"200":
description: Managed service was deleted.
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/managed-services/{serviceId}/labels/attach:
post:
tags:
- Managed Services
summary: Attach a label to a managed service
description: "Attaches a label to the managed service. If labelId is not provided,\
\ a new label will be created using text and color."
operationId: managed-service-labels-attach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: serviceId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedServiceLabelAttachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: managed-service-labels-attach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/LabelResponse"
/managed-services/{serviceId}/labels/detach:
post:
tags:
- Managed Services
summary: Detach a label from a managed service
description: Detaches a label from the managed service.
operationId: managed-service-labels-detach
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: serviceId
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedServiceLabelDetachRequest"
required: true
responses:
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
"200":
description: managed-service-labels-detach 200 response
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
/scm/provider/{providerType}/{providerId}/spaces:
get:
tags:
- Scm Providers
summary: List SCM provider's spaces
description: Lists Source Code Management provider's spaces.
operationId: scm-spaces-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: providerType
in: path
description: |
Type of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers endpoint.
required: true
schema:
type: string
- name: providerId
in: path
description: |
Instance ID of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers endpoint.
required: true
schema:
type: string
responses:
"200":
description: List of SCM provider's spaces
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/GetSpacesResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/scm/provider/{providerType}/{providerId}/spaces/{spaceId}/repos:
get:
tags:
- Scm Providers
summary: List SCM repositories
description: Lists Source Code Management repositories.
operationId: scm-repository-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: providerType
in: path
description: |
Type of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers endpoint.
required: true
schema:
type: string
- name: providerId
in: path
description: |
Instance ID of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers endpoint.
required: true
schema:
type: string
- name: spaceId
in: path
description: |
ID of an existing SCM spaces where repository will be hosted.
Available repositories can be obtained through the /scm/{providerType}/{providerId}/spaces endpoint.
required: true
schema:
type: string
- name: monorepo
in: query
description: |
Context for creation of the new application component.
The parameter affects occupied field in the response.
required: true
explode: false
schema:
type: boolean
responses:
"200":
description: List of SCM repositories
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ScmRepository"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/scm/provider/{providerType}/{providerId}/spaces/{spaceId}/repos/{repositoryId}/tree:
get:
tags:
- Scm Providers
summary: SCM repository tree
description: Tree of the Source Code Management repository. The operation returns
one level of the tree.
operationId: scm-repository-tree
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: providerType
in: path
description: |
Type of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers endpoint.
required: true
schema:
type: string
- name: providerId
in: path
description: |
Instance ID of an existing SCM provider
Available providers and supported actions can be obtained through the /scm/providers endpoint.
required: true
schema:
type: string
- name: spaceId
in: path
description: |
ID of an existing SCM spaces where repository will be hosted.
Available repositories can be obtained through the /scm/{providerType}/{providerId}/spaces endpoint.
required: true
schema:
type: string
- name: repositoryId
in: path
description: |
ID of an existing SCM repository to which the component should be placed.
Available repositories can be obtained through the /scm/{providerType}/{providerId}/spaces/{spaceId}/repos endpoint.
required: true
schema:
type: string
- name: treeId
in: query
description: |
ID of the tree that represents folder in the repository which the operation will return.
explode: false
schema:
type: string
nullable: true
responses:
"200":
description: The SCM repository tree
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/RepositoryTreeItem"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/scm/providers:
get:
tags:
- Scm Providers
summary: List SCM providers
description: Lists Source Code Management providers.
operationId: scm-providers-list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: withDisabled
in: query
description: |
Whether to include disabled SCM providers
required: true
explode: false
schema:
type: boolean
default: false
responses:
"200":
description: List of SCM providers
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ScmProviderResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/teams:
get:
tags:
- Teams
summary: List teams
operationId: team_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: List of teams
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/TeamListItemResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Teams
summary: Create new team
description: The operation creates new team.
operationId: team_create
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/TeamCreateRequest"
required: true
responses:
"200":
description: Team detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/TeamResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/teams/{teamName}:
get:
tags:
- Teams
summary: Get details of selected team
description: "The operation allows you to retrieve details about one team, including\
\ its members."
operationId: team_get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: teamName
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Team detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/TeamResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
delete:
tags:
- Teams
summary: Delete selected team
description: The operation allows you to remove a specific team from the system
permanently.
operationId: team_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: teamName
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Team was deleted
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/teams/{teamName}/members:
post:
tags:
- Teams
summary: Add member to selected team
description: The operation allows you to add member to a specific team.
operationId: team_member_add
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: teamName
in: path
required: true
schema:
minLength: 1
type: string
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/TeamMemberAddRequest"
required: true
responses:
"200":
description: Team member was added
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/teams/{teamName}/members/{userName}:
delete:
tags:
- Teams
summary: Delete member of selected team
description: The operation allows you to remove member from a specific team.
operationId: team_member_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: teamName
in: path
required: true
schema:
minLength: 1
type: string
- name: userName
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: Team member was removed
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/templates/application_components:
get:
tags:
- Templates
summary: List of application component templates
description: "The operation allows you to retrieve a collection of all available\
\ application component templates, which can be used to configure the template\
\ property of the ApplicationComponentCreateRequest."
operationId: templates_application-component_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: List of application component templates
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/Template"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/templates/libraries:
get:
tags:
- Templates
summary: List of library templates
description: "The operation allows you to retrieve a collection of all available\
\ library templates, which can be used to configure the template property\
\ of the LibraryCreateRequest."
operationId: templates_library_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: List of library templates
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/Template"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/templates/managed_services:
get:
tags:
- Templates
summary: List of managed services templates
description: The operation allows you to retrieve a collection of all available
managed services templates.
operationId: templates_managed-services_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: List of managed services templates
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/ManagedComponentTemplateResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/templates/managed_services/{mangedServiceTemplateId}:
get:
tags:
- Templates
summary: Detail of managed services template
description: Contains user configurable properties for managed services template.
operationId: templates_managed-services_detail
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: mangedServiceTemplateId
in: path
required: true
schema:
type: string
- name: version
in: query
explode: false
schema:
type: string
nullable: true
responses:
"200":
description: Detail of managed service template
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/ManagedComponentTemplatePropertyResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/user:
get:
tags:
- User
summary: Get logged in user details
operationId: user_get
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: User detail
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/UserController.UserDetail"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/user/ssh_keys:
get:
tags:
- Git SSH keys
summary: Retrieve list of public SSH keys
description: The operation retrieves a list of public SSH keys for the current
user.
operationId: ssh_keys_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: List of public SSH keys
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/UserSshKey"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
post:
tags:
- Git SSH keys
summary: Upload new public SSH key
description: The operation uploads new public SSH key for the current user.
operationId: ssh_keys_upload
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
requestBody:
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/UserSshKeyUploadRequest"
required: true
responses:
"200":
description: Public SSH key uploaded successfully
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/user/ssh_keys/{sshKeyId}:
delete:
tags:
- Git SSH keys
summary: Delete existing public SSH key
description: The operation deletes existing public SSH key for the current user.
operationId: ssh_keys_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: sshKeyId
in: path
required: true
schema:
type: integer
format: int32
responses:
"200":
description: SSH key deleted
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/users:
get:
tags:
- User
summary: List of users
description: The operation allows you to retrieve a collection of all users.
operationId: user_list
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
responses:
"200":
description: List of users
content:
application/vnd.codenow.v1+json:
schema:
type: array
items:
$ref: "#/components/schemas/User"
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
/users/{userName}:
delete:
tags:
- User
summary: Delete selected user
description: The operation allows you to remove a specific user from the system.
operationId: user_delete
parameters:
- name: X-Codenow-Api-Key
in: header
description: CodeNOW API Key
required: true
schema:
type: object
- name: userName
in: path
required: true
schema:
minLength: 1
type: string
responses:
"200":
description: User was deleted
content:
application/vnd.codenow.v1+json:
schema:
$ref: "#/components/schemas/OkResponse"
"409":
description: Such a user does not exist
"400":
description: "The request was unacceptable, often due to missing a required\
\ parameter."
"401":
description: No valid API key provided.
"403":
description: The API key doesn't have permissions to perform the request.
"404":
description: Resource not found.
"429":
description: Too many requests hit the API too quickly. We recommend an
exponential backoff of your requests.
"500":
description: Something went wrong on CodeNOW's end.
components:
schemas:
AccessControl:
type: object
properties:
unlimited:
type: boolean
description: "
A boolean flag indicating whether all user-defined environments\
\ can access the service via the Connect Services feature\
\ of Application Components.If set to false, only the environments specified\
\ in allowFrom will be able to connect.
"
allowFrom:
type: array
description: "
A list of IDs of all environments, from which the service\
\ can be accessed via the Connect Services feature of Application\
\ Components.To obtain these identifiers, use the GET /environments\
\ operation to retrieve a list of available environments.
This field\
\ should only be specified, when unlimited is set to false\
\ or null!
Action that will be performed on the SCM repository.
CREATE: New SCM repository will be created for the component.
LINK: The component will be linked to an existing SCM repository (unique ID of the repository will be required).
enum:
- CREATE
- LINK
AppComponentState:
type: string
description: |
State of the application component.
CREATING - Application component is in the process of being created.
READY - Application component is ready to be used.
FAILED - Application component creation has failed.
DELETING - Application component is in the process of being deleted.
enum:
- CREATING
- READY
- FAILED
- DELETING
ApplicationBuildLabelAttachRequest:
type: object
properties:
labelId:
type: string
description: "ID of an existing label to attach. If not provided, a new\
\ label will be created."
nullable: true
example: 550e8400-e29b-41d4-a716-446655440000
text:
maxLength: 100
minLength: 1
type: string
description: Text for a new label (required if labelId is not provided)
nullable: true
example: Production Ready
x-size-message: Label text must be between 1 and 100 characters
color:
pattern: "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
type: string
description: Color for a new label (required if labelId is not provided)
nullable: true
example: "#FF5733"
x-pattern-message: "Color must be a valid hex color (e.g., #FF0000 or #F00)"
description: "Request to attach a label to an application build/package. Provide\
\ labelId to use an existing label, or text+color to create a new one."
ApplicationBuildLabelDetachRequest:
required:
- labelId
type: object
properties:
labelId:
minLength: 1
type: string
description: ID of the label to detach
example: 550e8400-e29b-41d4-a716-446655440000
description: Request to detach a label from an application build/package
ApplicationComponentBuildLabelAttachRequest:
type: object
properties:
labelId:
type: string
description: "ID of an existing label to attach. If not provided, a new\
\ label will be created."
nullable: true
example: 550e8400-e29b-41d4-a716-446655440000
text:
maxLength: 100
minLength: 1
type: string
description: Text for a new label (required if labelId is not provided)
nullable: true
example: Production Ready
x-size-message: Label text must be between 1 and 100 characters
color:
pattern: "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"
type: string
description: Color for a new label (required if labelId is not provided)
nullable: true
example: "#FF5733"
x-pattern-message: "Color must be a valid hex color (e.g., #FF0000 or #F00)"
description: "Request to attach a label to an application component build. Provide\
\ labelId to use an existing label, or text+color to create a new one."
ApplicationComponentBuildLabelDetachRequest:
required:
- labelId
type: object
properties:
labelId:
minLength: 1
type: string
description: ID of the label to detach
example: 550e8400-e29b-41d4-a716-446655440000
description: Request to detach a label from an application component build
ApplicationComponentBuildRequest:
required:
- branch
type: object
properties:
version:
maxLength: 63
type: string
description: |
The version of the application component to be built.
For PREVIEW builds, the version is ignored and a preview version is generated.
nullable: true
branch:
minLength: 1
type: string
description: |
The branch of the application component to be built.
buildType:
description: |
The type of the build to be performed.
Possible values:
/ci-pipelines endpoint.
release:
type: string
description: |
/ci-pipelines endpoint.
ApplicationComponentCiConfigResponse.Runtime:
required:
- endpoints
- image
- port
type: object
properties:
image:
type: string
description: |
/ci-pipelines endpoint.
release:
type: string
description: |
/ci-pipelines endpoint.
ApplicationComponentCiConfigUpdateRequest.Runtime:
type: object
properties:
image:
type: string
description: |
.codenow.config.yaml./scm/providers endpoint./templates/application_components endpoint and choose the one desired./scm/providers endpoint."action": "CREATE", "provider": "codenow"LINK ActionType.
nullable: true
ApplicationComponentCreateRequestV2:
required:
- name
- scm
- template
type: object
properties:
name:
type: string
description: |-
/scm/providers endpoint./templates/application_components endpoint and choose the one desired./scm/providers endpoint./scm/providers endpoint.true: you must define spaceId and repositoryId of the existing repository in the requestfalse: new repository will be created for the component
monoRepository:
type: boolean
description: |
Defines if the new component will be share repository with other components:true: you must define componentPath where the component will be hosted in the repositoryfalse: the component will be hosted in the root of the repository
componentPath:
pattern: "^[a-zA-Z0-9\\-_~./]*$"
type: string
description: |
Define path in the repository where the component will be placed./scm/provider/{providerType}/{providerId}/spaces endpoint./scm/provider/{providerType}/{providerId}/spaces/{spaceId}/repos endpoint.EXISTING, meaning that the file\
\ is present in this version of the configuration (most common state),\
\ PREVIOUS, meaning it has been extracted from a previous\
\ configuration version (useful when creating a higher version), and DEFAULT,\
\ meaning this file is part of the default configuration prepared by CodeNOW..codenow.config.yaml..codenow.config.yaml
containing the runtime configuration exists in this component's repository.GET /applications/:applicationId/related-environments
operation to retrieve a list of available related environments.
deploymentConfig:
maxProperties: 100
minProperties: 1
type: object
additionalProperties:
$ref: "#/components/schemas/ApplicationComponentConfigStoreRequest"
description: |-
GET /applications/:applicationId/related-environments
operation to retrieve a list of available related environments.
version:
minLength: 1
type: string
description: displayName is not explicitly set during creation, the cluster name will
be used as the default displayName, ensuring the cluster has a recognizable and unique label.code-qualityv1.codenow.triggers.yaml
containing the trigger configuration exists in this component's repository..codenow.triggers.yaml
containing the trigger configuration exists in this container's repository..codenow.triggers.yaml
containing the trigger configuration exists in this library's repository.MANAGED service,
provided and maintained by CodeNOW,or EXTERNAL service, defined by the user and maintained independently outside of CodeNOW.type attribute.type attribute.containerv1/ci-pipelines endpoint.
ContainerCiConfigSettingsResponse:
required:
- globalPipelinesConfiguration
type: object
properties:
globalPipelinesConfiguration:
type: boolean
description: "/ci-pipelines endpoint.
ContainerComponentResponse:
required:
- ciSettings
- id
- name
- scm
- settings
- state
type: object
properties:
id:
type: string
description: /scm/providers endpoint./scm/providers endpoint.
providerType:
minLength: 1
type: string
description: |
Type of an existing SCM provider/scm/providers endpoint.
existingRepository:
type: boolean
description: |
Defines if the new container will be created in existing repository:true: you must define spaceId and repositoryId of the existing repository in the requestfalse: new repository will be created for the component
monoRepository:
type: boolean
description: |
Defines if the new container will be share repository with other components:true: you must define componentPath where the container will be hosted in the repositoryfalse: the container will be hosted in the root of the repository
componentPath:
pattern: "^[a-zA-Z0-9\\-_~./]*$"
type: string
description: |
Define path in the repository where the container will be placed./scm/provider/{providerType}/{providerId}/spaces endpoint./scm/provider/{providerType}/{providerId}/spaces/{spaceId}/repos endpoint.displayName is not explicitly set during creation, the system will
automatically use the Environment ID as the default displayName,
ensuring the environment has a recognizable and unique name.GET /clusters operation to retrieve a list of available clusters.true, CI triggers are allowed to deploy changes\
\ to this environment automatically. If set to false, CI\
\ triggers are disabled for this environment, and manual intervention\
\ is required for deployments.GET /clusters\
\ operation to retrieve a list of available clusters.true, CI triggers are allowed\
\ to deploy changes to this environment automatically. When set to false,\
\ CI triggers are disabled for this environment, and manual intervention\
\ is required for deployments.git-revisionv1git-tagv1helmv1/ci-pipelines endpoint.
LibraryCiConfigSettingsResponse:
required:
- globalPipelinesConfiguration
type: object
properties:
globalPipelinesConfiguration:
type: boolean
description: "/ci-pipelines endpoint.
LibraryComponentResponse:
required:
- ciSettings
- id
- name
- scm
- settings
- state
- template
type: object
properties:
id:
type: string
description: /templates/libraries endpoint and choose the one desired./scm/providers endpoint./scm/providers endpoint."action": "CREATE", "provider": "codenow"LINK ActionType.
nullable: true
LibraryCreateRequestV2:
required:
- name
- scm
- template
type: object
properties:
name:
maxLength: 170
minLength: 3
type: string
description: |-
/templates/libraries endpoint and choose the one desired./scm/providers endpoint./scm/providers endpoint.
providerType:
minLength: 1
type: string
description: |
Type of an existing SCM provider/scm/providers endpoint.
existingRepository:
type: boolean
description: |
Defines if the new component will be created in existing repository:true: you must define spaceId and repositoryId of the existing repository in the requestfalse: new repository will be created for the component
monoRepository:
type: boolean
description: |
Defines if the new component will be share repository with other components:true: you must define componentPath where the component will be hosted in the repositoryfalse: the component will be hosted in the root of the repository
componentPath:
pattern: "^[a-zA-Z0-9\\-_~./]*$"
type: string
description: |
Define path in the repository where the component will be placed./scm/provider/{providerType}/{providerId}/spaces endpoint./scm/provider/{providerType}/{providerId}/spaces/{spaceId}/repos endpoint.linkv1GET /environments\
\ operation to retrieve a list of available environments.\"ENTERPRISE\"."
status:
description: MANAGED for a service provided and managed by CodeNOW,\
\ or ENTERPRISE for a service managed by the customer outside\
\ of CodeNOW.Connect Services feature of Application
Components.GET /templates/managed_services to retrieve
list of available templates.GET /templates/managed_services/:templateId
to obtain list of available template properties.GET /environments\
\ operation to retrieve a list of available environments.Connect Services feature of Application
Components.GET /environments\
\ operation to retrieve a list of available environments.MANAGED for a service provided and managed by CodeNOW,\
\ or ENTERPRISE for a service managed by the customer outside\
\ of CodeNOW.GET /environments\
\ operation to retrieve a list of available environments.MANAGED for a service provided and managed by CodeNOW,\
\ or ENTERPRISE for a service managed by the customer outside\
\ of CodeNOW.mavenv1npmv1nugetv1tree - folderblob - file
treeId:
type: string
description: PARENT_FOLDER - These folders are considered as occupied becauseAPP_COMPONENT - These folders are occupied by others application components.FREE - These folders would hosted new application component.cpu (cpu core), represented by a simple number (decimals allowed),
and m (thousandth of a core), denoted by the 'm' suffix. For example, '1000m' is equivalent to '1'.E, P, T, G, M,
k. You can also use the power-of-two equivalents: Ei, Pi, Ti,
Gi, Mi, Ki. For example, the following represent roughly the same value:
128974848, 129e6, 129M, 128974848000m, 123Mi.cpu (cpu core), represented by a simple number (decimals allowed),
and m (thousandth of a core), denoted by the 'm' suffix. For example, '1000m' is equivalent to '1'.E, P, T, G, M,
k. You can also use the power-of-two equivalents: Ei, Pi, Ti,
Gi, Mi, Ki. For example, the following represent roughly the same value:
128974848, 129e6, 129M, 128974848000m, 123Mi./templates/application_components endpoint for application component or
/templates/libraries endpoint for library
version:
minLength: 1
type: string
description: |
/templates/application_components endpoint for application component or
/templates/libraries endpoint for library
properties:
type: object
additionalProperties:
type: string
description: |
/templates/application_components endpoint for application component or
/templates/libraries endpoint for library
TemplateSpecV2:
required:
- custom
- id
- version
type: object
properties:
id:
minLength: 1
type: string
description: |
/templates/application_components endpoint for application component or
/templates/libraries endpoint for library
version:
minLength: 1
type: string
description: |
/templates/application_components endpoint for application component or
/templates/libraries endpoint for library
custom:
type: boolean
description: |
/templates/application_components endpoint for application component or
/templates/libraries endpoint for library
properties:
type: object
additionalProperties:
type: string
description: |
/templates/application_components endpoint for application component or
/templates/libraries endpoint for library
ThirdParty.State:
type: string
enum:
- ACTIVE
- SETUP
Trigger:
required:
- branch
- pipeline
type: object
properties:
event:
type: string
description: pushevent occurrences on this branch will execute the trigger.preview, representing a preview build,
the other possible value is release, representing a release build.latest, representing the highest versioned defined configuration,
and branch, representing the configuration stored in the branch associated with the trigger.pushevent occurrences on this branch will execute the trigger.release is a valid value, representing the release build.pushevent occurrences on this branch will execute the trigger.release is a valid value, representing the release build.