---
title: "Invoke a function (PATCH)"
method: PATCH
path: "/functions/v1/{name}"
tags: ["Functions"]
---

# Invoke a function (PATCH)

`PATCH /functions/v1/{name}`

## Request

- Base URL: `https://api.run402.com`
- URL: `https://api.run402.com/functions/v1/{name}`
- Auth: API key in header `apikey`

## Path parameters

- `name` string, required

## Request body

- object

## Response `200`

Function response. Schema and content type are controlled by the deployed function.

- unknown

## Other responses

- `401`: Missing or invalid authentication. Run402-originated JSON bodies use the canonical ErrorEnvelope.
- `413`: Too large to invoke; the function did not run. A body over 1 MB is code VALIDATION_FAILED. A body that, encoded as JSON with the forwarded headers, reaches Lambda's 6 MiB invoke payload is code PAYLOAD_TOO_LARGE, with details.limit (the byte limit) and details.size (the measured bytes).

---

[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)
