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:
Field | Type | Required | Description |
---|---|---|---|
expr | String | Yes | The expression to validate. |
connectionId | String | Yes | Connection ID. |
objectName | String | Yes | Name of the source or target object. |
isSourceType | Boolean | Yes | Whether 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
}