Transforms

Create a Reusable Record Transform

Create a new reusable record transform.

post/transforms

Request

Request body

namestring required
descriptionstring
output_type'record' required

Type of code container. This must be set to record to signify that this code container is to be used to convert an input record of a Nexset into an output record for that Nexset.

reusableboolean required

Whether or not this transform can be referenced by multiple Nexsets. This should always be true for reusable record transforms.

code_type'jolt_custom' | 'jolt_standard' required

Type of code in the code block. Use jolt_custom if the code in the code block is a python, python3 or javascript transform code block wrapped inside a Jolt operation block.

code_encoding'none' required

Whether or not the code in the code block is encoded. Set this to none for reusable record transforms.

custom_configobject

Configuration block useful for converting code into Nexla UI's Nexset Designer Rule blocks.

This should not be sent in the payload unless the transform is being created using the Nexla UI's Nexset Designer screen.

tagsstring[]

Response

Success

idinteger
namestring
resource_type'transform'
reusableboolean
access_rolesstring[]

This property reflects all the permissions the user/team/organization has to this resource.

  1. collaborator: The user/team/organization can view the resource but not make any modifications to it.
  2. operator: The user/team/organization can view the resource and can activate/pause it, but not make any other modifications to it.
  3. administrator: The user/team/organization has complete administrative rights to this resource.
  4. owner: This user created the resource and so has complete administrative rights to it.
descriptionstring
code_type'jolt_standard' | 'jolt_custom'
output_type'record'
code_configobject
custom_configobject
code_encodingstring
codeobject[]
managedboolean
data_setsinteger[]
copied_from_idinteger
updated_atstring date-time
created_atstring date-time
tagsstring[]

Example response

{
  "id": 1,
  "name": "test",
  "description": "test",
  "code_encoding": "none"
}

Changes

No recorded changes to this operation across all 1 revision of this API.