Skip to content
Management API Reference

Update a function

patch/v1/projects/{ref}/functions/{function_slug}

Updates a function with the specified slug and project.

OAuth scopes

  • edge_functions:write

Path parameters

  • ref
    Required
    string

    Project ref

  • function_slug
    Required
    string

    Function slug

Query parameters

  • slug
    Optional
    string
  • name
    Optional
    string
  • verify_jwt
    Optional
    boolean

    Boolean string, true or false

  • import_map
    Optional
    boolean

    Boolean string, true or false

  • entrypoint_path
    Optional
    string
  • import_map_path
    Optional
    string
  • ezbr_sha256
    Optional
    string

Body

string

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

1
{
2
"id": "lorem",
3
"slug": "lorem",
4
"name": "lorem",
5
"status": "ACTIVE",
6
"version": 42,
7
"created_at": 42,
8
"updated_at": 42,
9
"verify_jwt": true,
10
"import_map": true,
11
"entrypoint_path": "lorem",
12
"import_map_path": "lorem",
13
"ezbr_sha256": "lorem"
14
}