---
title: "Bulk update functions"
method: PUT
path: "/v1/projects/{ref}/functions"
tags: ["Edge Functions"]
---

# Bulk update functions

`PUT /v1/projects/{ref}/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.

## Path parameters

- `ref` string, required

## Request body

- object[]
  - `id` string, required
  - `slug` string, required
  - `name` string, required
  - `status` 'ACTIVE' | 'REMOVED' | 'THROTTLED', required
  - `version` integer, required
  - `created_at` integer
  - `verify_jwt` boolean
  - `import_map` boolean
  - `entrypoint_path` string
  - `import_map_path` string
  - `ezbr_sha256` string

## Response `200`

- BulkUpdateFunctionResponse
  - `functions` object[], required
    - `id` string, required
    - `slug` string, required
    - `name` string, required
    - `status` 'ACTIVE' | 'REMOVED' | 'THROTTLED', required
    - `version` integer, required
    - `created_at` integer, required
    - `updated_at` integer, required
    - `verify_jwt` boolean
    - `import_map` boolean
    - `entrypoint_path` string
    - `import_map_path` string
    - `ezbr_sha256` string

## Other responses

- `401` — Unauthorized
- `402` — Maximum number of functions reached for Plan
- `403` — Forbidden action
- `429` — Rate limit exceeded
- `500` — Failed to update functions

---

[API](https://skmtc.dev/supabase/apis/management-api.md) · [All operations](https://skmtc.dev/supabase/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supabase/management-api/revisions/a7cb39418064/schema)
