Asset

Update an asset

Updates an asset.

patch/asset/{id}

Path parameters

idinteger required

The ID of the asset to update.

Request body

Example request

{
  "metadata": {
    "key": "value"
  }
}

Response

The asset was updated

idinteger required

The ID of the asset.

namestring

The name of the asset.

build_idinteger required

The ID of the build that the asset belongs to.

type'docker-image' | 'lambda' | 'bundle' required

The type of the asset.

platform'x86_64' | 'arm_64'

The platform of the asset.

urlstring uri required

The url of the asset.

•For docker-image assets, this should be the local tagged image or image name.

•For lambda assets, this should be the file path of the lambda package.

nrnstring

The resource name (NRN) uniquely identifying the asset.

branchstring

The branch that the asset was built from.

Example response

{
  "id": 123,
  "name": "My Asset",
  "build_id": 345,
  "type": "docker-image",
  "platform": "arm_64",
  "url": "https://example.com/my-asset.jpg",
  "nrn": "organization=1:account=2:namespace=4:application=4:build=345:asset=123",
  "branch": "main",
  "commit": {
    "id": 234,
    "permalink": "https://example.com/1234"
  }
}

Changes