Skip to main content

Create a new application package

POST 

/applications/:applicationId/packages

Create a new application package

Request

Path Parameters

    applicationId stringrequired

    Possible values: non-empty

Header Parameters

    X-Codenow-Api-Key anyrequired

    CodeNOW API Key

Body

required

    version stringrequired


    Release version of the application package.

    components

    object[]

    required

    Possible values: >= 1


    Versioned application components the package will consist of.

  • Array [

  • componentId stringrequired

    Possible values: non-empty


    ID of the component.

    version stringrequired


    Release version of the component.

  • ]

  • labels

    object[]

    nullable

    Possible values: <= 32


    Optional colored labels of the package.

  • Array [

  • color stringrequired

    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 .

    text stringrequired

    Possible values: non-empty and <= 256 characters


    Text label

  • ]

Responses

application_packages-create 200 response

Schema

    version string


    Release version of the application package.

    applicationId string


    ID of an application the package belongs to.

    basePackageVersion stringnullable


    Version of the package this package has been based on.

    archived boolean


    Indicates whether this package has been archived.

    preview boolean

    components

    object[]

    required


    Application components the package consists of.

  • Array [

  • componentId string


    ID of the component.

    version string


    Version of the component.

    dockerImage string


    Docker image of the component.

    deleted boolean


    Indicates whether the component has been deleted.

    branch stringnullable


    Branch the component version was build from.

    commit

    object

    nullable


    Commit the component version was build from.

    id string


    The commit SHA.

    shortId stringnullable


    The short commit SHA.

    message stringnullable


    The commit message.

    author

    object

    nullable


    Author of the commit.

    name string


    The name of the person.

    email string


    The email of the person.

    date date-time


    The date of the commit.

    committer

    object

    nullable


    Committer of the commit.

    name string


    The name of the person.

    email string


    The email of the person.

    date date-time


    The date of the commit.

    partOfBasePackage booleannullable


    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.

  • Array [

  • id uuid


    ID of the label.

    text string


    Text of the label.

    color string


    Color of the label.

  • ]

Loading...