The tasks that read, transform and write streaming records between pipeline stages, with every
parameter and worked examples.
Perform aggregate operations (sum, avg, min, max, count) across multiple fields on streaming pipeline records. Results are emitted as a single record after all input records have been processed.
Parameter Type Required Description fieldstring Yes Field name to aggregate opstring Yes Operation: sum, avg, min, max
Parameter Type Required Description fieldslist Yes List of field specifications fields[].fieldstring Yes Field name fields[].opslist Yes Operations: sum, avg, min, max, count
Results are emitted as a single record with keys named {field}_{op}:
Key Pattern Example Description {field}_sumamount_sumSum of all values {field}_avgamount_avgAverage of all values {field}_minamount_minMinimum value {field}_maxamount_maxMaximum value {field}_countamount_countCount of values for the field countcountTotal records processed (always included)
print : " Total: {{amount_sum}}, Records: {{count}} "
ops : [ sum , avg , min , max ]
path : /data/daily-metrics.csv
Perform multi-field aggregation computations from Script scripts.
Function Description aggregate.compute()Compute aggregate operations on a set of records
Parameter Type Default Description fieldslist — List of {field: string, ops: []string} (required) recordslist — List of maps representing records (required)
Supported operations: sum, avg, min, max, count
Field Type Description successbool Whether the computation succeeded resultmap Aggregated values keyed as {field}_{op}, plus count errorstring Error message if failed
// Compute sum and average of amounts
var result = aggregate . compute ( {
{ field: " amount " , ops: [ " sum " , " avg " , " min " , " max " ] },
{ field: " quantity " , ops: [ " sum " ] }
{ amount: 100 , quantity: 5 },
{ amount: 200 , quantity: 3 },
{ amount: 150 , quantity: 8 }
// result.result = { amount_sum: 450, amount_avg: 150, amount_min: 100,
// amount_max: 200, quantity_sum: 16, count: 3 }
// Read CSV and aggregate in one script
var data = csv . read ( { path: " /data/sales.csv " } );
var stats = aggregate . compute ( {
{ field: " revenue " , ops: [ " sum " , " avg " ] },
{ field: " units " , ops: [ " sum " , " min " , " max " ] }
console . log ( " Total revenue: " + stats . result . revenue_sum );
console . log ( " Total units: " + stats . result . units_sum );
Execute multi-language scripts for each pipeline record using the Script scripting engine. Similar to Plugin but supports JavaScript, Lua, Starlark, and V8. The user’s script must define a function named morph.
Parameter Type Required Default Description languagestring No javascriptScript language: javascript, js, lua, starlark, javascript-v8, v8 executestring Yes* — Script code executed per record rowsstring Yes* — Per-record script (alias for execute) endstring No — Script executed after all records are processed
* One of execute or rows is required.
The script must define a function named morph that receives an input argument:
// input.data - the current record (map)
// input.env - the pipeline environment variables (map)
These functions are injected as globals and available in all supported languages:
Function Description write(key, value)Sink a value to a named output pipe setmemory(key, value)Store a value in pipeline memory getmemory(key)Retrieve a value from pipeline memory deletememory(key)Delete a value from pipeline memory hasmemory(key)Check if a key exists in pipeline memory memorykeys()Get all memory keys memorykeyslike(pattern)Get memory keys matching a pattern clearmemory()Clear all pipeline memory
full_name: input.data.first_name + " " + input.data.last_name,
email: input.data.email.toLowerCase()
local price = tonumber(input.data.price)
product = input.data.name,
price_with_tax = price * 1.1
var category = input.data.category;
var current = hasmemory(category) ? getmemory(category) : 0;
setmemory(category, current + parseFloat(input.data.amount));
write("summary", { category: cat, total: getmemory(cat) });
"event": data["type"].upper(),
Execute inline morph scripts from within another Script script. Enables nested script execution for dynamically generating transformation code or running user-provided scripts.
Function Description morph.execute()Run a morph script inline with specified language and input
Parameter Type Default Description languagestring javascriptScript language: javascript, js, lua, starlark, javascript-v8, v8 codestring — Script source defining a morph(input) function (required) inputany — Input data passed to the morph function
Field Type Description successbool Whether the execution succeeded resultany Return value from the morph function errorstring Error message if failed
// Execute a JavaScript morph inline
var result = morph . execute ( {
code: ' function morph(input) { return input.x * 2; } ' ,
// result = { success: true, result: 42 }
// Execute a Lua morph from JavaScript
var result = morph . execute ( {
code: ' function morph(input) return input.name .. " processed" end ' ,
// result = { success: true, result: "Alice processed" }
// Combine csv.read + morph.execute for dynamic processing
var data = csv . read ( { path: " /data/records.csv " } );
var transformCode = ' function morph(input) { return { upper: input.name.toUpperCase(), len: input.name.length }; } ' ;
for ( var i = 0 ; i < data . records . length ; i ++ ) {
var transformed = morph . execute ( {
console . log ( JSON . stringify ( transformed . result ));
No-op passthrough that forwards each record unchanged to all output sinks. Useful as a placeholder or for testing pipelines.
No parameters required.
Execute JavaScript code for each pipeline record. Provides built-in functions for writing to sinks and reading/writing pipeline memory for aggregation patterns.
Parameter Type Required Default Description executestring Yes* — JavaScript code executed once per pipeline (one-time mode) rowsstring Yes* — JavaScript code executed per record (row mode) endstring No — JavaScript code executed after all records are processed
* One of execute or rows is required. If execute is empty, rows is used in per-record mode.
Function Description write(key, value)Sink a value to a named output pipe setmemory(key, value)Store a value in pipeline memory getmemory(key)Retrieve a value from pipeline memory deletememory(key)Delete a value from pipeline memory hasmemory(key)Check if a key exists in pipeline memory memorykeys()Get all memory keys memorykeyslike(pattern)Get memory keys matching a pattern clearmemory()Clear all pipeline memory
Record data is available as env.data and environment variables as env.env in the JavaScript context.
var total = parseFloat(record.price) * parseInt(record.quantity);
write("output", {product: record.name, total: total});
var category = record.category;
var current = hasmemory(category) ? getmemory(category) : 0;
setmemory(category, current + parseFloat(record.amount));
write("output", {category: keys[k], total: getmemory(keys[k])});
Print each pipeline record to stdout using a Liquid template string. Useful for debugging pipelines.
Parameter Type Required Default Description (direct value) string Yes — Liquid template string for printing. Record fields available as template variables
print : " Record: id={{id}}, name={{name}}, amount={{amount}} "
Read CSV files and stream each row as a key-value record into the data pipeline. The first row is used as the header to name each field.
Parameter Type Required Default Description (direct value) string Yes* — Shorthand: file path as the direct parameter value pathstring Yes* — Single CSV file path. Supports Liquid templates and ~ expansion pathslist Yes* — List of path specs for reading multiple files paths[].srcstring Yes — Source directory. Supports Liquid templates and ~ expansion paths[].includelist No — Glob patterns to include. Supports Liquid templates paths[].excludelist No — Glob patterns to exclude. Supports Liquid templates waitduration No — Delay between reading each record (e.g. 100ms, 1s) entitymap/URL No — Entity definition for record validation validateentitystring No — Entity name to validate against (when multiple entities defined)
* One of direct value, path, or paths is required.
read-csv : /data/users.csv
path : " ~/exports/{{month}}/report.csv "
Read and write CSV files from Script scripts.
Function Description csv.read()Read a CSV file into an array of records csv.write()Write records to a CSV file
Parameter Type Default Description pathstring — CSV file path (required)
Field Type Description successbool Whether the read succeeded recordsarray Array of key-value maps (one per row) errorstring Error message if failed
for ( var i = 0 ; i < result . records . length ; i ++ ) {
console . log ( result . records [ i ] . name + " : " + result . records [ i ] . email );
Read records from a PostgreSQL database query and stream them into the pipeline. Supports SSL/TLS and vault-based credential retrieval.
Parameter Type Required Default Description hoststring Yes — Database host. Supports Liquid templates usernamestring Yes — Database user. Supports Liquid templates passwordstring Yes — Vault path for password retrieval. Supports Liquid templates querystring Yes — SQL query to execute. Supports Liquid templates databasestring No username Database name portint No 5432Database port certificatestring No — SSL client certificate (PEM content) keystring No — SSL client key (PEM content) issuerstring No — SSL CA certificate (PEM content) sslmodestring No verify-caSSL mode waitduration No — Delay between reading each record entitymap/URL No — Entity definition for record validation
password : " {{vault.db_password}} "
query : " SELECT id, name, email FROM users WHERE active = true "
password : " {{vault.db_password}} "
certificate : " {{vault.db_cert}} "
issuer : " {{vault.db_ca}} "
query : " SELECT * FROM events "
Query and execute statements against PostgreSQL databases from Script scripts.
Function Description db.query()Execute a SELECT query and return records db.execute()Execute an INSERT/UPDATE/DELETE statement
Parameter Type Default Description connectionstring — PostgreSQL connection string (required) querystring — SQL query to execute (required)
Field Type Description successbool Whether the query succeeded recordsarray Array of key-value maps (one per row) errorstring Error message if failed
// Query a PostgreSQL database
connection: " postgres://user:pass@host:5432/db?sslmode=disable " ,
query: " SELECT * FROM users "
for ( var i = 0 ; i < result . records . length ; i ++ ) {
console . log ( result . records [ i ] . name + " : " + result . records [ i ] . email );
Read records from a Data API entity store using a bulk query. Requires entity definition files and a database pool configuration.
Parameter Type Required Default Description fileslist Yes — Entity definition file paths dbpoolmap Yes — Database pool configuration querystring Yes — Entity query to execute entitymap/URL No — Entity definition for record validation
password : " {{vault.db_password}} "
query : " SELECT * FROM user WHERE active = true "
Query and mutate Data API entity stores from Script scripts.
Function Description entity.query()Query records from an entity store entity.mutate()Write records to an entity store
Note: Entity operations require a pipeline environment with Data API EntityManager. The namespace functions are stubs in Script standalone mode and return errors directing to the YAML pipeline interface.
Parameter Type Default Description fileslist — Entity definition file paths dbpoolmap — Database pool configuration querystring — Entity query to execute
Field Type Description successbool Whether the query succeeded recordsarray Array of entity records errorstring Error message (stub always returns error)
// Entity queries are not available in Script standalone mode.
// Use the YAML pipeline interface (readentity) instead.
var result = entity . query ( {
files: [ " /schemas/user.yaml " ] ,
query: " SELECT * FROM user "
// result = { success: false, error: "entity operations require pipeline environment" }
Read records from a datastore entity using metadata service configuration. Lazily initializes the entity manager and caches it for reuse.
Parameter Type Required Default Description datastorestring Yes — Datastore name querystring Yes — Entity query to execute metaurlstring No tenantmeta.urlMetadata service URL override entitymap/URL No — Entity definition for record validation
- name : read-from-datastore
query : " SELECT * FROM orders WHERE status = 'pending' "
See readentity for the entity namespace documentation. The entity.query() and entity.mutate() functions are shared across ReadEntity, ReadEntityDatastore, and WriteEntityDatastore tasks.
// Entity queries are not available in Script standalone mode.
// Use the YAML pipeline interface (readentity-in-datastore) instead.
var result = entity . query ( {
datastore: " customer-db " ,
query: " SELECT * FROM orders "
// result = { success: false, error: "entity operations require pipeline environment" }
Read Excel spreadsheet files and stream each row as a pipeline record. The first row of each sheet is used as the header.
Parameter Type Required Default Description (direct value) string Yes* — Shorthand: file path pathstring Yes* — Excel file path. Supports Liquid templates and ~ expansion pathslist Yes* — List of path specs with src, include, exclude waitduration No — Delay between records entitymap/URL No — Entity definition for record validation
* One of direct value, path, or paths is required.
Read and write Excel files from Script scripts.
Function Description excel.read()Read an Excel file into an array of records excel.write()Write records to an Excel file
Parameter Type Default Description pathstring — Excel file path (required) sheetstring — Sheet name (reads all sheets if omitted)
Field Type Description successbool Whether the read succeeded recordsarray Array of key-value maps (one per row) errorstring Error message if failed
// Read records from an Excel file
var result = excel . read ( { path: " /data/report.xlsx " , sheet: " Sales " } );
for ( var i = 0 ; i < result . records . length ; i ++ ) {
console . log ( result . records [ i ] . product + " : " + result . records [ i ] . amount );
Read Apache Parquet files and stream each row as a pipeline record. All values are converted to strings.
Parameter Type Required Default Description (direct value) string Yes* — Shorthand: file path pathstring Yes* — Parquet file path. Supports Liquid templates and ~ expansion pathslist Yes* — List of path specs with src, include, exclude waitduration No — Delay between records entitymap/URL No — Entity definition for record validation
* One of direct value, path, or paths is required.
path : /data/events.parquet
Read and write Parquet files from Script scripts.
Function Description parquet.read()Read a Parquet file into an array of records parquet.write()Write records to a Parquet file
Parameter Type Default Description pathstring — Parquet file path (required)
Field Type Description successbool Whether the read succeeded recordsarray Array of key-value maps (one per row) errorstring Error message if failed
// Read records from a Parquet file
var result = parquet . read ( { path: " /data/events.parquet " } );
for ( var i = 0 ; i < result . records . length ; i ++ ) {
console . log ( JSON . stringify ( result . records [ i ]));
Make an HTTP request and parse the CSV response into pipeline records. The first row of the response is used as the header.
Parameter Type Required Default Description verbstring Yes — HTTP method (GET, POST, etc.). Supports Liquid templates urlstring Yes — REST endpoint URL. Supports Liquid templates headersmap No — HTTP request headers. Supports Liquid templates timeoutstring No 10sConnection timeout waitduration No — Delay between records entitymap/URL No — Entity definition for record validation
url : " https://api.example.com/export.csv "
Authorization : " Bearer {{token}} "
Make HTTP requests from Script scripts.
Function Description rest.request()Make an HTTP request and return the response
Parameter Type Default Description urlstring — Request URL (required) verbstring GETHTTP method headersmap — HTTP request headers timeoutstring 10sConnection timeout
Field Type Description successbool Whether the request succeeded statusint HTTP status code resultany Response body errorstring Error message if failed
Note: In pipeline mode, the ReadREST response is parsed as CSV into records. In Script standalone mode, rest.request returns the raw response body.
// Fetch data from a REST endpoint
var result = rest . request ( {
url: " https://api.example.com/data.csv "
console . log ( " Status: " + result . status );
console . log ( " Body: " + result . result );
Make an HTTP request with an optional JSON payload and sink the full response as a single record.
Parameter Type Required Default Description verbstring Yes — HTTP method. Supports Liquid templates urlstring Yes — REST endpoint URL. Supports Liquid templates payloadstring No ""Request body template. Supports Liquid templates headersmap No — HTTP request headers. Supports Liquid templates timeoutstring No 10sConnection timeout waitduration No — Delay between records
url : " https://api.example.com/query "
payload : ' {"filter": "{{filter_value}}"} '
Content-Type : application/json
See readrest for the rest namespace documentation. The rest.request() function is shared across ReadREST, ReadRESTJSON, and ReadRESTJSONPipe tasks.
// POST a JSON payload and read the response
var result = rest . request ( {
url: " https://api.example.com/data " ,
headers: { " Authorization " : " Bearer token " }
console . log ( " Status: " + result . status );
console . log ( " Response: " + JSON . stringify ( result . result ));
Execute a shell command and parse its CSV stdout output into pipeline records. The first line is used as the header.
Parameter Type Required Default Description commandstring Yes — Shell command to execute waitduration No — Delay between records entitymap/URL No — Entity definition for record validation
- name : read-process-output
command : " cat /var/log/metrics.csv "
Execute shell commands and parse CSV output from Script scripts.
Function Description stdout.exec()Execute a command and parse its CSV output into records
Parameter Type Default Description commandstring — Shell command to execute (required)
Field Type Description successbool Whether the execution succeeded recordsarray Array of key-value maps parsed from CSV output outputstring Raw command output errorstring Error message if failed
// Execute a command and parse CSV output
var result = stdout . exec ( {
command: " echo 'name,age \n Alice,30 \n Bob,25' "
for ( var i = 0 ; i < result . records . length ; i ++ ) {
console . log ( result . records [ i ] . name + " is " + result . records [ i ] . age );
Replicate each incoming record unchanged to all output sinks. Useful for fan-out patterns where the same data feeds into multiple downstream tasks.
No parameters required.
See sum for the full compute namespace documentation.
Parameter Type Default Description recordmap — Record to replicate (required)
Field Type Description successbool Whether the replication succeeded resultmap Deep copy of the input record errorstring Error message if failed
// Create a deep copy of a record
var result = compute . replicate ( {
record: { name: " Alice " , age: 30 , role: " admin " }
var copy = result . result ;
console . log ( copy . name ); // "Alice"
Full-featured REST API client for data pipelines. Supports service authentication, retry logic, polling with wait-for conditions, and post-request JavaScript processing. Parses JSON array or object responses into individual pipeline records.
Parameter Type Required Default Description typestring Yes — HTTP method urlstring Yes — REST endpoint URL. Supports Liquid templates payloadstring No — Request body template payloadkeystring No — Key to extract from payload datakeystring No — Key to extract from response JSON setbodystring No — Key name to store response body setstatuscodestring No — Key name to store HTTP status code headersmap No — HTTP request headers sendheadersmap No — Headers to include in output timeoutstring No 10sConnection timeout serviceauthbool No falseUse service-to-service JWT auth mlresponsebool No falseMulti-line response mode failonerrorbool No trueFail pipeline on HTTP error doretrybool No falseEnable retry on failure retrycountint No -1Number of retries (-1 = unlimited) waitformap No — Polling config with callback expression postrequestmap No — Post-processing JavaScript expression
url : " https://api.example.com/records "
url : " https://internal-api/bulk "
payload : ' {"ids": {{ids}}} '
See readrest for the rest namespace documentation. The rest.request() function is shared across ReadREST, ReadRESTJSON, and ReadRESTJSONPipe tasks.
Note: Pipeline-only features (Vault service authentication, JavaScript post-processing, retry logic, and wait-for polling) are not available in Script standalone mode. Use rest.request for direct HTTP calls.
// POST with JSON body and auth header
var result = rest . request ( {
url: " https://api.example.com/data " ,
headers: { " Authorization " : " Bearer token " }
console . log ( " Status: " + result . status );
console . log ( " Response: " + JSON . stringify ( result . result ));
Add a fixed numeric value to a field in each pipeline record. The result is emitted per record.
Parameter Type Required Default Description headerstring Yes — Column name containing the numeric value valuefloat Yes — Value to add to each record’s field
Numeric and string computation functions for Script scripts.
Function Description compute.sum()Add two numeric values compute.concat()Concatenate two strings compute.replicate()Create a deep copy of a record
Parameter Type Default Description valuenumber — Base value (required) addnumber — Value to add (required)
Field Type Description successbool Whether the computation succeeded resultnumber Sum of the two values errorstring Error message if failed
// Add two numeric values
var result = compute . sum ( { value: 42 , add: 8 } );
console . log ( result . result ); // 50
Concatenate a fixed string value to a field in each pipeline record. The result is emitted per record.
Parameter Type Required Default Description headerstring Yes — Column name containing the string value valuestring Yes — String to concatenate
See sum for the full compute namespace documentation.
Parameter Type Default Description valuestring — Base string (required) addstring — String to concatenate (required)
Field Type Description successbool Whether the computation succeeded resultstring Concatenated string errorstring Error message if failed
// Concatenate two strings
var result = compute . concat ( { value: " Hello " , add: " World " } );
console . log ( result . result ); // "Hello World"
Write pipeline records to a CSV file. The header row is inferred from the first record’s keys unless pre-defined.
Parameter Type Required Default Description (direct value) string Yes* — Shorthand: file path pathstring Yes* — Output CSV file path overwritebool No falseTruncate file before writing (vs append) headerslist No — Pre-defined column headers (inferred from first record if omitted) entitymap/URL No — Entity definition for record validation
* One of direct value or path is required.
path : /output/results.csv
path : /output/results.csv
See readcsv for the full csv namespace documentation.
Parameter Type Default Description pathstring — Output CSV file path (required) recordsarray — Array of key-value maps to write (required) headerslist — Column headers (inferred if omitted) overwritebool falseTruncate file before writing
Field Type Description successbool Whether the write succeeded countint Number of records written errorstring Error message if failed
// Write records to a CSV file
path: " /output/data.csv " ,
{ name: " Alice " , age: " 30 " },
{ name: " Bob " , age: " 25 " }
console . log ( " Wrote " + result . count + " records " );
Write pipeline records to a PostgreSQL database by executing a templated SQL query per record. Supports SSL/TLS and vault-based credential retrieval.
Parameter Type Required Default Description hoststring Yes — Database host. Supports Liquid templates usernamestring Yes — Database user. Supports Liquid templates passwordstring Yes — Vault path for password retrieval querystring Yes — SQL INSERT/UPDATE template. Supports Liquid templates with record fields databasestring No username Database name portint No 5432Database port certificatestring No — SSL client certificate keystring No — SSL client key issuerstring No — SSL CA certificate sslmodestring No verify-fullSSL mode maxconnectionsstring No 3Max connection pool size connectionlifetimestring No 1sConnection max lifetime connectimeoutstring No 1Connect timeout in seconds entitymap/URL No — Entity definition for record validation
password : " {{vault.db_password}} "
query : " INSERT INTO events (id, name, value) VALUES ('{{id}}', '{{name}}', '{{value}}') "
See readdb for the full db namespace documentation.
Parameter Type Default Description connectionstring — PostgreSQL connection string (required) querystring — SQL statement to execute (required)
Field Type Description successbool Whether the execution succeeded affectedint Number of rows affected errorstring Error message if failed
// Execute an INSERT statement
var result = db . execute ( {
connection: " postgres://user:pass@host:5432/db?sslmode=disable " ,
console . log ( " Affected rows: " + result . affected );
Write pipeline records to a datastore entity using a JSON record template. Executes bulk mutations via the Data API entity manager.
Parameter Type Required Default Description datastorestring Yes — Datastore name record-templatestring Yes — JSON template for record. Supports Liquid templates with record fields metaurlstring No — Metadata service URL override
writeentity-in-datastore :
"customer": "{{customer}}",
See readentity for the full entity namespace documentation.
Parameter Type Default Description datastorestring — Datastore name (required) recordmap — Entity record data (required)
Field Type Description successbool Whether the mutation succeeded errorstring Error message (stub always returns error)
Note: Entity operations require a pipeline environment with Data API EntityManager. The entity.mutate function is a stub in Script standalone mode.
// Entity mutations are not available in Script standalone mode.
// Use the YAML pipeline interface (writeentity-in-datastore) instead.
var result = entity . mutate ( {
datastore: " customer-db " ,
// result = { success: false, error: "entity operations require pipeline environment" }
Write pipeline records to an Excel spreadsheet. Creates or appends to an Excel file. The sheet name is derived from the input pipeline name.
Parameter Type Required Default Description (direct value) string Yes* — Shorthand: file path pathstring Yes* — Output Excel file path overwritebool No falseCreate new file (vs append to existing) entitymap/URL No — Entity definition for record validation
* One of direct value or path is required.
path : /output/report.xlsx
See readexcel for the full excel namespace documentation.
Parameter Type Default Description pathstring — Output Excel file path (required) sheetstring — Sheet name recordsarray — Array of key-value maps to write (required) overwritebool falseCreate new file (vs append)
Field Type Description successbool Whether the write succeeded countint Number of records written errorstring Error message if failed
// Write records to an Excel file
var result = excel . write ( {
path: " /output/report.xlsx " ,
{ name: " Alice " , score: " 95 " },
{ name: " Bob " , score: " 87 " }
console . log ( " Wrote " + result . count + " records " );
Write pipeline records to an Apache Parquet file. Schema is inferred from the first record’s keys. All fields are written as strings.
Parameter Type Required Default Description (direct value) string Yes* — Shorthand: file path pathstring Yes* — Output Parquet file path overwritebool No falseTruncate file before writing entitymap/URL No — Entity definition for record validation
* One of direct value or path is required.
path : /output/events.parquet
See readparquet for the full parquet namespace documentation.
Parameter Type Default Description pathstring — Output Parquet file path (required) recordsarray — Array of key-value maps to write (required)
Field Type Description successbool Whether the write succeeded countint Number of records written errorstring Error message if failed
// Write records to a Parquet file
var result = parquet . write ( {
path: " /output/data.parquet " ,
{ id: " 1 " , name: " Alice " },
console . log ( " Wrote " + result . count + " records " );
Write each pipeline record to a REST API endpoint by making an HTTP request per record. Requests are executed asynchronously in goroutines.
Parameter Type Required Default Description urlstring Yes — REST endpoint URL. Supports Liquid templates with record fields verbstring No postHTTP method. Supports Liquid templates payloadstring No — Request body template. Supports Liquid templates with record fields headersmap No — HTTP request headers. Supports Liquid templates waitdurationstring No 10sDelay between requests connectiontimeoutstring No 10sConnection timeout entitymap/URL No — Entity definition for record validation
url : " https://api.example.com/records "
payload : ' {"id": "{{id}}", "name": "{{name}}"} '
Content-Type : application/json
Authorization : " Bearer {{token}} "
See readrest for the full rest namespace documentation. The rest.request() function is used for both reading and writing via REST endpoints.
// POST JSON data to a REST endpoint
var result = rest . request ( {
url: " https://api.example.com/users " ,
headers: { " Content-Type " : " application/json " }
console . log ( " Status: " + result . status );
console . log ( " Response: " + JSON . stringify ( result . result ));