Athena
Functions

Create or replace a Postgres function from DDL

Runs validated `CREATE OR REPLACE FUNCTION` DDL inside a transaction with audit tables. Requires `management.functions.write` Audit rows require `public.database_audit_log` and `public.function_ddl_audit_log` on the gateway logging Postgres database.

PUT
/management/functions

Header Parameters

X-Athena-Client*string
apikey?string

Request Body

application/json

ddl*string

CREATE OR REPLACE FUNCTION ... DDL validated server-side

Response Body

curl -X PUT "https://athena-cluster.com/management/functions" \  -H "X-Athena-Client: string" \  -H "Content-Type: application/json" \  -d '{    "ddl": "string"  }'
Empty
Empty
Empty
Empty
Empty