---
title: "Update function metadata (schedule, timeout, memory) without redeploying code"
method: PATCH
path: "/projects/v1/admin/{project_id}/functions/{name}"
tags: ["Functions"]
---

# Update function metadata (schedule, timeout, memory) without redeploying code

`PATCH /projects/v1/admin/{project_id}/functions/{name}`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/projects/v1/admin/{project_id}/functions/{name}`
- Auth: HTTP bearer

## Path parameters

- `project_id` string, required: Run402 project ID. Public IDs are not UUIDs.
- `name` string, required

## Request body

- object
  - `schedule` string, nullable: Cron expression (5-field) or null to remove
  - `config` object
    - `timeout` integer: Timeout in seconds. Must be a finite JSON integer within the project tier limit.
    - `memory` integer: Memory in MB. Must be a finite JSON integer within the project tier limit.

## Response `200`

Updated function metadata

- object
  - `name` string
  - `runtime` string
  - `timeout` integer
  - `memory` integer
  - `schedule` string, nullable
  - `updated_at` string, date-time

## Other responses

- `404`: Function not found

---

[API](https://skmtc.dev/run402/apis/run402-api.md) · [All operations](https://skmtc.dev/run402/apis/run402-api/llms.txt) · [OpenAPI document](https://skmtc.dev/run402/apis/run402-api/revisions/893607557f50?raw)
