Skip to main content

Create an asset for a build

Create a new asset for a specific build.

Path Parameters
id integer REQUIRED

The ID of the build for which to create an asset.

Request Body REQUIRED
name string

The name of the asset (optional, default is 'main').

type string

The type of asset to be pushed. Supported types are: 'docker-image' and 'lambda'.

metadata object

Additional metadata for the asset. This section allows you to include valuable information such as framework details, useful links, and any other relevant data.

Responses
200

Asset created successfully.

Schema OPTIONAL
id integer OPTIONAL

The unique ID of the asset.

build_id integer OPTIONAL

The ID of the build associated with the asset.

name string OPTIONAL

The name of the asset.

type string OPTIONAL

The type of the asset.

targets object[] OPTIONAL
provider string OPTIONAL

The provider of the asset.

url string OPTIONAL

The URL where the asset is located.

metadata object OPTIONAL

Additional metadata for the asset.