RESTAPIRequest - pathParams

The path parameters passed in the request URI.

Table 1. Field
Name Type Description
pathParams Object The path parameters as a script object. Available path parameters depend on the web service configuration.

In this example, the scripted REST API endpoint follows this format:{tableName}/{id}. The request being processed uses this URL:

var pathParams = request.pathParams; 
var tableName = pathParams.tableName; //‘myApp_table’ 
var id =; //‘1234’