Skip to main content
PATCH
/
compute
/
functions
/
{collection_topic}
/
{function_topic}
Update a function
curl --request PATCH \
  --url https://api.quiva.ai/compute/functions/{collection_topic}/{function_topic} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "description": "Updated function description",
  "monitor_config": {
    "ttl": 1209600000,
    "store_payload": false
  }
}
'
{
  "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

function_topic
string
required

Function topic identifier

Body

application/json

Function properties to update

name
string

Function name

description
string

Function description

monitor_config
object
schema
object
size
string

Size configuration for function resources

Response

Function patched successfully

message
string

Success message