Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Functions

Delete function

delete

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.

Path parameters
idintegerRequired

Function ID

Responses
204

No content

No content

delete/api/functions/{id}
DELETE /api/functions/{id} HTTP/1.1
Accept: */*

No content

List functions

get

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.

Responses
200

Functions response

application/json
get/api/functions
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"
    }
  ]
}

Create function

post

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 with name (required), type, and values.

Body
groupstring · nullableOptional

Group name

namestringRequired

Function name

return_typestring · nullableOptional

Return type

scopestring · nullableOptional

Scope

Responses
200

Function response

application/json
post/api/functions
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"
  }
}

Update all functions

put

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 with name (required), type, and values.

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.

Body
Responses
200

Functions response

application/json
put/api/functions
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"
    }
  ]
}

Update all functions

patch

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 with name (required), type, and values.

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.

Body
Responses
200

Functions response

application/json
patch/api/functions
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