Functions
Permanently deletes a quality function.
Requires administrative privileges (administrator or service account).
If the function is currently referenced by any rule or implementation, deleting it may cause validation failures in those rules. The endpoint does not perform a referential check before removal.
Function ID
No content
No content
Unauthorized
Forbidden
Internal Server Error
DELETE /api/functions/{id} HTTP/1.1
Accept: */*
No content
Returns the list of quality functions available for building rule expressions.
Permissions: Requires at least one of the following permissions on any domain:
'Manage form implementations'
'Manage native implementations'
'Create grant request' Administrators and service accounts are always allowed.
No pagination is applied; the full list of functions is returned. Each function includes its return type, group, scope, and argument definitions.
Functions are shared globally, not per domain. The permission check is therefore global rather than domain‑scoped.
Functions response
Unauthorized
Forbidden
Internal Server Error
GET /api/functions HTTP/1.1
Accept: */*
{
"data": [
{
"args": [
{
"name": "arg1",
"type": "string"
}
],
"group": "group1",
"id": 1,
"name": "example_function",
"return_type": "string",
"scope": "public"
}
]
}Creates a new quality function.
Requires administrative privileges (administrator or service account).
Request body:
name(required, string) – Function name. Must be unique.return_type(optional, string) – Return type.group(optional, string) – Group name.scope(optional, string) – Scope.args(optional, array) – Argument definitions, each withname(required),type, andvalues.
Group name
Function name
Return type
Scope
Function response
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/functions HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 87
{
"args": [
{
"name": "arg1",
"type": "string"
}
],
"name": "new_function",
"return_type": "string"
}{
"data": {
"args": [
{
"name": "arg1",
"type": "string"
}
],
"id": 1,
"name": "new_function"
}
}Replaces the entire set of quality functions with the provided definitions. This is a full‑replacement operation: functions that are not included in the request are removed, and functions in the payload are created or updated to match the supplied definitions.
Requires administrative privileges (administrator or service account).
Request body:
functions(required, array) – Complete list of function definitions. Each item contains:name(required, string) – Function name.return_type(optional, string) – Return type.group(optional, string) – Group name.scope(optional, string) – Scope.args(optional, array) – Argument definitions, each withname(required),type, andvalues.
The replacement runs inside a transaction. The response contains the resulting full list of functions.
Because this is a replacement rather than a partial update, any function that is omitted from the payload and currently exists in the catalog will be removed.
Functions response
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
PUT /api/functions HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"functions": [
{
"args": [
{
"name": "arg1",
"type": "string"
}
],
"name": "function1",
"return_type": "string"
}
]
}{
"data": [
{
"args": [
{
"name": "arg1",
"type": "string"
}
],
"id": 1,
"name": "function1"
}
]
}Replaces the entire set of quality functions with the provided definitions. This is a full‑replacement operation: functions that are not included in the request are removed, and functions in the payload are created or updated to match the supplied definitions.
Requires administrative privileges (administrator or service account).
Request body:
functions(required, array) – Complete list of function definitions. Each item contains:name(required, string) – Function name.return_type(optional, string) – Return type.group(optional, string) – Group name.scope(optional, string) – Scope.args(optional, array) – Argument definitions, each withname(required),type, andvalues.
The replacement runs inside a transaction. The response contains the resulting full list of functions.
Because this is a replacement rather than a partial update, any function that is omitted from the payload and currently exists in the catalog will be removed.
Functions response
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
PATCH /api/functions HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 100
{
"functions": [
{
"args": [
{
"name": "arg1",
"type": "string"
}
],
"name": "function1",
"return_type": "string"
}
]
}{
"data": [
{
"args": [
{
"name": "arg1",
"type": "string"
}
],
"id": 1,
"name": "function1"
}
]
}Last updated