Sift | Docs
APIReferenceREST (HTTP/JSON)User defined function service

GetUserDefinedFunctionVersions

Retrieve versions of user defined functions.

GET
/api/v1/user-defined-functions/versions

Query Parameters

userDefinedFunctionVersionIds
Required
array<string>

curl -X GET "<API_URL>/api/v1/user-defined-functions/versions?userDefinedFunctionVersionIds=string" \
  -H "Authorization: Bearer <API_KEY>"

A successful response.

{
  "userDefinedFunctions": [
    {
      "userDefinedFunctionId": "string",
      "name": "string",
      "archivedDate": "2019-08-24T14:15:22Z",
      "userDefinedFunctionVersionId": "string",
      "version": 0,
      "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": "2019-08-24T14:15:22Z",
      "modifiedDate": "2019-08-24T14:15:22Z",
      "createdByUserId": "string",
      "modifiedByUserId": "string",
      "metadata": [
        {
          "key": {
            "name": "string",
            "type": "METADATA_KEY_TYPE_UNSPECIFIED",
            "archivedDate": "2019-08-24T14:15:22Z"
          },
          "stringValue": "string",
          "numberValue": 0.1,
          "booleanValue": true,
          "archivedDate": "2019-08-24T14:15:22Z"
        }
      ]
    }
  ]
}