Configuration

Payload Shaping

Learn how to use JMESPath to transform payloads between functions.

Updated 12/11/2025

Payload Shaping allows you to transform and customize input payloads using JMESPath expressions before they are processed by a function.

Payload Shaping Function

A Payload Shaping Function (type: "payload_shaping") uses a shapingSchema to define the transformation.

Configuration

  • shapingSchema: A JMESPath expression string.

Example

To extract specific fields and calculate a sum:

1{
2  "type": "payload_shaping",
3  "functionName": "shape-tenders",
4  "shapingSchema": "{ \"load_reference\": tenders[0].loadReference, \"total_weight\": tenders[].weightTons | sum(@) }"
5}

This allows you to decouple your internal data structures from the specific inputs required by your logic functions.