Skip to main content
POST
Create UDF
Creates a new UDF. See User-defined functions in Cloud.

Permission

The API key must have the control-plane:organization:manage permission.

Autorizaciones

Authorization
string
header
requerido

Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi

Parámetros de ruta

organizationId
string<uuid>
requerido

ID of the requested organization.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$

Cuerpo

application/json
uploadId
string<uuid>
requerido

Identifier of the uploaded source archive.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
runtime
enum<string>
requerido
Opciones disponibles:
python3.11,
native
arguments
object[]
requerido
returnType
string
requerido
type
string
requerido
Allowed value: "executable"
functionName
string
requerido
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
returnName
string | null
Pattern: ^[A-Za-z][A-Za-z0-9_]*$
commandReadTimeout
integer
predeterminado:10000
commandWriteTimeout
integer
predeterminado:10000
memoryLimitMib
integer | null
Rango requerido: 1 <= x <= 1048576
sendChunkHeader
boolean
predeterminado:false
deterministic
boolean
predeterminado:false

Marks the UDF as deterministic so ClickHouse can reuse cached query results. Only set this when the UDF always returns the same result for the same arguments.

format
string
predeterminado:TabSeparated
sandboxType
enum<string>
predeterminado:basic
Opciones disponibles:
basic,
netenable
sandboxVersion
enum<string>
predeterminado:v2
Opciones disponibles:
v1,
v2,
v3
poolSize
null

Always null — an executable UDF has no command pool.

maxCommandExecutionTime
integer | null
predeterminado:10
Rango requerido: x > 0

Respuesta

UDF created and building.

status
integer
requerido

HTTP status code.

Ejemplo:

201

requestId
string<uuid>
requerido

Unique id assigned to every request. UUIDv4

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$
result
object
requerido
Última modificación el 3 de octubre de 2026