Create a new application package
POST/applications/:applicationId/packages
Create a new application package
Request
Path Parameters
Possible values: non-empty
Header Parameters
CodeNOW API Key
- application/vnd.codenow.v1+json
Body
required
Array [
]
Array [
]
Release version of the application package.
components
object[]
required
Possible values: >= 1
Versioned application components the package will consist of.
Possible values: non-empty
ID of the component.
Release version of the component.
labels
object[]
nullable
Possible values: <= 32
Optional colored labels of the package.
Possible values: Value must match regular expression red|yellow|blue|green|black
Color of the label, possible values are: red,yellow,blue,green or black .
Possible values: non-empty
and <= 256 characters
Text label
Responses
- 200
- 400
- 401
- 403
- 404
- 429
- 500
application_packages-create 200 response
- application/vnd.codenow.v1+json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Release version of the application package.
ID of an application the package belongs to.
Version of the package this package has been based on.
Indicates whether this package has been archived.
components
object[]
required
Application components the package consists of.
ID of the component.
Version of the component.
Docker image of the component.
Indicates whether the component has been deleted.
Branch the component version was build from.
commit
object
nullable
Commit the component version was build from.
The commit SHA.
The short commit SHA.
The commit message.
author
object
nullable
Author of the commit.
The name of the person.
The email of the person.
The date of the commit.
committer
object
nullable
Committer of the commit.
The name of the person.
The email of the person.
The date of the commit.
Indicates whether the component is part of the base package.
Preview packages will have components which are not part of the base package
labels
object[]
Optional colored labels of the package.
ID of the label.
Text of the label.
Color of the label.
{
"version": "string",
"applicationId": "string",
"basePackageVersion": "string",
"archived": true,
"preview": true,
"components": [
{
"componentId": "string",
"version": "string",
"dockerImage": "string",
"deleted": true,
"branch": "string",
"commit": {
"id": "string",
"shortId": "string",
"message": "string",
"author": {
"name": "string",
"email": "string",
"date": "2024-07-29T15:51:28.071Z"
},
"committer": {
"name": "string",
"email": "string",
"date": "2024-07-29T15:51:28.071Z"
}
},
"partOfBasePackage": true
}
],
"labels": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"text": "string",
"color": "string"
}
]
}
The request was unacceptable, often due to missing a required parameter.
No valid API key provided.
The API key doesn't have permissions to perform the request.
Resource not found.
Too many requests hit the API too quickly. We recommend an exponential backoff of your requests.
Something went wrong on CodeNOW's end.