---
title: "Create UDF upload URL"
method: POST
path: "/v1/organizations/{organizationId}/udfUploads/url"
tags: ["UDF"]
---

# Create UDF upload URL

`POST /v1/organizations/{organizationId}/udfUploads/url`

## Request

- Base URL: `https://api.clickhouse.cloud`
- URL: `https://api.clickhouse.cloud/v1/organizations/{organizationId}/udfUploads/url`
- Auth: HTTP basic

Creates an org-scoped presigned application/zip upload URL. Callers must use an upload ID for only one create or version attempt and request a new upload URL when retrying.

## Path parameters

- `organizationId` string, uuid, required: ID of the requested organization.

## Response `201`

Upload URL created.

- object
  - `status` integer, required: HTTP status code.
  - `requestId` string, uuid, required: Unique id assigned to every request. UUIDv4
  - `result` UdfUploadSession, required
    - `uploadId` string, uuid, required: Identifier of the uploaded source archive.
    - `uploadUrl` string, uri, required: Presigned URL for uploading the source archive.
    - `expiresAt` string, date-time, required: Presigned-URL expiry timestamp.

## Other responses

- `400`: The request cannot be processed due to a client error. Please verify your request parameters and try again.
- `500`: An internal server error has occurred. If this issue persists, please contact ClickHouse Cloud support for assistance.

## Changes

- **2026-11-16** `4e1eec98567b`: 2 info
  - the security scope `control-plane:organization:manage-udfs` was added to the endpoint's security scheme `basicAuth`
  - the security scope `control-plane:organization:manage` was removed from the endpoint's security scheme `basicAuth`

[Operation history](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/changes/v1/organizations/:organizationId/udfUploads/url/post.md)

---

[API](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud.md) - [All operations](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/llms.txt) - [OpenAPI document](https://skmtc.dev/clickhouse/apis/openapi-spec-for-clickhouse-cloud/revisions/eac345053548?raw)
