DELETE
/
functions
/
{functionName}
curl --request DELETE \
  --url https://api.blaxel.ai/v0/functions/{functionName} \
  --header 'Authorization: Bearer <token>'
{
  "events": [
    {
      "message": "<string>",
      "revision": "<string>",
      "status": "<string>",
      "time": "<string>",
      "type": "<string>"
    }
  ],
  "metadata": {
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "createdBy": "<string>",
    "updatedBy": "<string>",
    "displayName": "<string>",
    "labels": {},
    "name": "<string>",
    "workspace": "<string>"
  },
  "spec": {
    "configurations": {
      "key": {
        "secret": true,
        "value": "<string>"
      }
    },
    "enabled": true,
    "flavors": [
      {
        "name": "<string>",
        "type": "<string>"
      }
    ],
    "integrationConnections": [
      "<string>"
    ],
    "podTemplate": {},
    "policies": [
      "<string>"
    ],
    "privateClusters": {
      "baseUrl": "<string>",
      "enabled": true,
      "name": "<string>"
    },
    "revision": {
      "active": "<string>",
      "canary": "<string>",
      "canaryPercent": 123,
      "traffic": 123
    },
    "runtime": {
      "args": [
        "<any>"
      ],
      "command": [
        "<any>"
      ],
      "cpu": 123,
      "endpointName": "<string>",
      "envs": [
        "<any>"
      ],
      "image": "<string>",
      "memory": 123,
      "metricPort": 123,
      "model": "<string>",
      "organization": "<string>",
      "servingPort": 123,
      "startupProbe": {},
      "type": "<string>"
    },
    "sandbox": true,
    "serverlessConfig": {
      "maxScale": 123,
      "minScale": 123,
      "timeout": 123
    },
    "description": "<string>",
    "kit": [
      {
        "description": "<string>",
        "name": "<string>",
        "schema": {
          "allOf": [
            "<any>"
          ],
          "anyOf": [
            "<any>"
          ],
          "description": "<string>",
          "enum": [
            "<string>"
          ],
          "format": "<string>",
          "items": {},
          "maxLength": 123,
          "maximum": 123,
          "minLength": 123,
          "minimum": 123,
          "not": {},
          "oneOf": [
            "<any>"
          ],
          "pattern": "<string>",
          "properties": {},
          "required": [
            "<string>"
          ],
          "title": "<string>",
          "type": "<string>"
        }
      }
    ],
    "schema": {
      "allOf": [
        "<any>"
      ],
      "anyOf": [
        "<any>"
      ],
      "description": "<string>",
      "enum": [
        "<string>"
      ],
      "format": "<string>",
      "items": {},
      "maxLength": 123,
      "maximum": 123,
      "minLength": 123,
      "minimum": 123,
      "not": {},
      "oneOf": [
        "<any>"
      ],
      "pattern": "<string>",
      "properties": {},
      "required": [
        "<string>"
      ],
      "title": "<string>",
      "type": "<string>"
    }
  },
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

functionName
string
required

Name of the function

Response

200 - application/json
successful operation

Function

events
object[]

Core events

Core event

metadata
object

Metadata

spec
object

Function specification

status
string

Function status