---
title: "Update function settings"
method: PATCH
path: "/projects/{id}/functions/{functionId}"
tags: ["Functions"]
---

# Update function settings

`PATCH /projects/{id}/functions/{functionId}`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/functions/{functionId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `id` string, uuid, required
- `functionId` string, uuid, required

## Request body

- UpdateFunctionRequest
  - `visibility` 'private' | 'authenticated' | 'public': Who can invoke the function. Each level admits everything the one before it does. - `private`: service keys and the project's schedulers only. The default for a new function. To any other credential the function does not exist: it answers 404, like a missing one. - `authenticated`: also any signed-in user of the project, including anonymous sign-ins. The function receives their auth context. - `public`: also anon keys holding `functions.invoke`, and Frontend Function routes, which forward requests without a credential.
  - `is_public` boolean: Deprecated alias for `visibility`: `true` means `public` and `false` means `authenticated`. Sending both with different meanings returns 400.
  - `invocation_mode` 'rpc' | 'http': Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; `http` forwards HTTP request semantics to the function runtime.
  - `http_auth_mode` 'volcano' | 'none': Authentication applied by the HTTP ingress. `none` is valid only for HTTP-mode functions with `visibility: public` and is intended for externally signed webhooks.
  - `openapi_spec` object, nullable: OpenAPI 3.0 or 3.1 metadata for HTTP mode. Send null to clear it.

## Response `200`

Function updated

- Function
  - `id` string, uuid, required
  - `project_id` string, uuid, required
  - `name` string, required
  - `status` 'provisioning' | 'active' | 'failed' | 'deleting', required
  - `provisioning_started_at` string, date-time: Timestamp when the current provisioning phase started
  - `visibility` 'private' | 'authenticated' | 'public', required: Who can invoke the function. Each level admits everything the one before it does. - `private`: service keys and the project's schedulers only. The default for a new function. To any other credential the function does not exist: it answers 404, like a missing one. - `authenticated`: also any signed-in user of the project, including anonymous sign-ins. The function receives their auth context. - `public`: also anon keys holding `functions.invoke`, and Frontend Function routes, which forward requests without a credential.
  - `is_public` boolean, required: Deprecated. `true` exactly when `visibility` is `public`.
  - `invocation_mode` 'rpc' | 'http', required: Invocation contract. `rpc` preserves the existing POST `{payload: ...}` contract; `http` forwards HTTP request semantics to the function runtime.
  - `http_auth_mode` 'volcano' | 'none', required: Authentication applied by the HTTP ingress. `none` is valid only for HTTP-mode functions with `visibility: public` and is intended for externally signed webhooks.
  - `openapi_spec` object, nullable, required: Optional OpenAPI 3.0 or 3.1 document describing an HTTP-mode function.
  - `has_openapi_spec` boolean, required: Whether OpenAPI metadata is configured; list responses omit the document itself.
  - `invoke_url` string: Canonical geo-routed HTTPS endpoint for invoking this function. Use it as-is: it does not share a domain with the API, so a host derived from the API URL will not reach the function. Omitted when the deployment serves no public invocation domain, as in local development, so a client testing for an empty string never matches.
  - `deployed_regions` string[], required: Regions where this function is currently deployed
  - `runtime` string
  - `handler` string
  - `current_deployment_id` string, uuid: Identifier of the latest function deployment operation
  - `pending_deployment_id` string, uuid: Newest queued deployment that will run after the current operation
  - `last_invoked_at` string, date-time: Most recent successful invocation timestamp
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid settings: an unknown `visibility`, `visibility` and `is_public` disagree, or `http_auth_mode: none` on a function that is not `public`
- `404`: Function not found
- `409`: Function settings conflict with attached Frontend Function routes: a routed function must stay `public` and in HTTP invocation mode.

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 warning, 6 info
  - removed the optional property `aws_function_arn` from the response with the `200` status
  - the endpoint scheme security `ProjectAccessToken` was added to the API
  - added the new optional request property `visibility`
  - request property `is_public` deprecated
  - …3 more
- **2026-09-19** `3a6f365f3f35`: 6 breaking, 28 info
  - added the new path request parameter `functionId`
  - added the new path request parameter `id`
  - the request's body type changed from no type to `object`
  - the response's body type changed from no type to `object` for status `200`
  - …30 more
- **2026-08-27** `bb44e98aba2e`: 14 breaking, 13 warning
  - the request's body type changed from `object` to no type
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `400`
  - the response's body type changed from `object` to no type for status `404`
  - …23 more
- **2026-07-27** `bb52784e098a`: 3 info
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `404` status
  - added the optional property `pending_deployment_id` to the response with the `200` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/functions/:functionId/patch.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
