Skip to main content
GET
/
api
/
v1
/
user-defined-functions
ListUserDefinedFunctions
curl --request GET \
  --url https://your-sift-api-url.com/api/v1/user-defined-functions \
  --header 'Authorization: Bearer <token>'
{
  "userDefinedFunctions": [
    {
      "userDefinedFunctionId": "<string>",
      "name": "<string>",
      "archivedDate": "2023-11-07T05:31:56Z",
      "userDefinedFunctionVersionId": "<string>",
      "version": 123,
      "description": "<string>",
      "changeMessage": "<string>",
      "userNotes": "<string>",
      "expression": "<string>",
      "functionInputs": [
        {
          "identifier": "<string>",
          "dataType": "FUNCTION_DATA_TYPE_UNSPECIFIED",
          "constant": true
        }
      ],
      "functionOutputType": "FUNCTION_DATA_TYPE_UNSPECIFIED",
      "functionDependencies": [
        {
          "userDefinedFunctionVersionId": "<string>"
        }
      ],
      "createdDate": "2023-11-07T05:31:56Z",
      "modifiedDate": "2023-11-07T05:31:56Z",
      "createdByUserId": "<string>",
      "modifiedByUserId": "<string>",
      "metadata": [
        {
          "key": {
            "name": "<string>",
            "type": "METADATA_KEY_TYPE_UNSPECIFIED",
            "archivedDate": "2023-11-07T05:31:56Z"
          },
          "stringValue": "<string>",
          "numberValue": 123,
          "booleanValue": true,
          "archivedDate": "2023-11-07T05:31:56Z"
        }
      ]
    }
  ],
  "nextPageToken": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

pageSize
integer

The maximum number of user defined functions to return. The service may return fewer than this value. If unspecified, at most 50 user defined functions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. Optional.

pageToken
string

A page token, received from a previous ListUserDefinedFunctions call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListUserDefinedFunctions must match the call that provided the page token. Optional.

filter
string

A Common Expression Language (CEL) filter string. There are currently no available fields. For further information about how to use CELs, please refer to this guide.

orderBy
string

How to order the retrieved user defined functions. Formatted as a comma-separated string i.e. "FIELD_NAME[ desc],...". Available fields to order_by are created_date, modified_date, and name. If left empty, items are ordered by created_date in descending order (newest-first). For more information about the format of this field, read this Example: "created_date desc,modified_date".

Response

A successful response.

The response of a call to UserDefinedFunctionService_ListUserDefinedFunctions.

userDefinedFunctions
object[]
required
nextPageToken
string