---
title: "Create a global UDF"
method: POST
path: "/v1/udfs"
tags: ["udfs"]
---

# Create a global UDF

`POST /v1/udfs`

## Request

- Base URL: `/api/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/udfs`
- Auth: none declared

## Request body

- UdfPost
  - `definition` string, required
  - `description` string, nullable
  - `language` 'python' | 'rust'
  - `prefix` string, required

## Response `200`

Created UDF

- Udf
  - `definition` string, required
  - `language` 'python' | 'rust'

---

[API](https://skmtc.dev/arroyosystems/apis/arroyo-rest-api.md) - [All operations](https://skmtc.dev/arroyosystems/apis/arroyo-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/arroyosystems/apis/arroyo-rest-api/revisions/226b33c4af0f?raw)
