Skip to main content
PUT
Attach UDF to service
Attaches one UDF version to a service, replacing the current version when necessary. When version is omitted, the latest ready version is attached.

Permission

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

授权

Authorization
string
header
必填

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

路径参数

organizationId
string<uuid>
必填

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)$
functionName
string
必填

Name of the UDF.

Pattern: ^[A-Za-z][A-Za-z0-9_]*$
serviceId
string<uuid>
必填

ID of the requested service.

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

请求体

application/json
version
integer

Version to attach. When omitted, the latest ready version is attached.

示例:

1

响应

Current attachment state.

status
integer
必填

HTTP status code.

示例:

200

requestId
string<uuid>
必填

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
必填
最后修改于 2026年10月3日