Skip to main content
PATCH
/
compute
/
compute-assets
/
{collection_topic}
/
{resource_topic}
Update compute assets
curl --request PATCH \
  --url https://api.quiva.ai/compute/compute-assets/{collection_topic}/{resource_topic} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "handler": "index.newHandler",
  "assets": [
    {
      "asset_name": "index.js",
      "asset_type": "file",
      "asset_value": "Y29uc29sZS5sb2coIkhlbGxvLCBVcGRhdGVkIFdvcmxkISIpOwo=",
      "link": false
    }
  ],
  "timeout": 60000,
  "env_vars": [
    "ENV=production"
  ],
  "read_only_fs": true
}
'
{
  "message": "success"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

collection_topic
string
required

Collection topic identifier

resource_topic
string
required

Resource topic identifier (function or container)

Body

application/json

Compute asset properties to update

handler
string

Function handler (only applicable for functions)

runtime
string

Runtime environment

assets
object[]

Asset items

timeout
integer

Timeout in milliseconds (only applicable for functions)

env_vars
string[]

Environment variables

read_only_fs
boolean

Read-only filesystem flag

Response

Compute assets patched successfully

message
string

Success message