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

The fine-grained token must include the following permissions to access this endpoint:

  • 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
    string
  • import_map
    Optional
    string
  • entrypoint_path
    Optional
    string
  • import_map_path
    Optional
    string
  • ezbr_sha256
    Optional
    string

Body

string

Response codes

  • 200
  • 401
  • 403
  • 429
  • 500

Response (200)

{
"id": "lorem",
"slug": "lorem",
"name": "lorem",
"status": "ACTIVE",
"version": -9007199254740991,
"created_at": -9007199254740991,
"updated_at": -9007199254740991,
"verify_jwt": true,
"import_map": true,
"entrypoint_path": "lorem",
"import_map_path": "lorem",
"ezbr_sha256": "lorem"
}