v1

latestOpenAPI 3.0.02026-07-14169146300.3 KB
Edge Functions

Bulk update functions

Bulk update functions. It will create a new function or replace existing. The operation is idempotent. NOTE: You will need to manually bump the version.

put/v1/projects/{ref}/functions

Path parameters

refstring required
Example:abcdefghijklmnopqrst

Project ref

Request body

idstring required
slugstring required
namestring required
status'ACTIVE' | 'REMOVED' | 'THROTTLED' required
versioninteger required
created_atinteger
verify_jwtboolean
import_mapboolean
entrypoint_pathstring
import_map_pathstring
ezbr_sha256string

Example request

[
  {
    "id": "3c078cce-ad70-4148-9f37-4da362789053",
    "slug": "hello-world",
    "name": "Hello World",
    "status": "ACTIVE",
    "version": 2,
    "verify_jwt": true,
    "entrypoint_path": "index.ts"
  }
]

Response