Expression Validation

Use this resource to validate expressions.

POST Request

To validate an expression, use the following URI:

/saas/api/v2/expression/validate

Use the following attributes in the request body:

FieldTypeRequiredDescription
exprStringYesThe expression to validate.
connectionIdStringYesConnection ID.
objectNameStringYesName of the source or target object.
isSourceTypeBooleanYesWhether the expression is for a source object. Values are True or False.

If the expression is valid, the response returns a message that says the expression is valid. If the expression is not valid, the response returns an error.

POST Example

To validate an expression, you might use the following request:

POST <serverURL>/api/v2/expression/validate
Content-Type: application/json
Accept: application/json
   { 
   "@type":"expressionValidation",
   "expr":"REPVERSION",
   "connectionId":"0000010B000000000004",
   "objectName":"OPB_REPOSIT",
   "isSourceType":true
   }