/{orgId}/{itemId}/evaluateArcadeProvides results for dynamic properties based on expression that can be evaluated during run time without having to build them into the job template or search. If any of the properties are not defined on the context, the arcade expression evaluator will return an empty result. The job context should be used to evaluate job specific properties, and the base context should be used to evaluate user level properties. The adminBasic or adminAdvanced privilege is required.
Arcade expression evaluator parameters:
| Parameter | Description | Data Type | 
|---|---|---|
| expression | Required. Define the arcade expression you want to evaluate | String | 
| contextType | Required. Define the context of the expression. BaseContextis used for the user context.JobContextcan also be specified for job specific properties. | String | 
| context | Optional depending on contextType. Required for JobContext. Input the jobId in the context object for which you want to find the dynamic property value defined on the job during run time. | Object | 
| parseMode | Optional. Can be set to Standard,URL, orQuery. IfURL, the returned result will be url encoded. IfQuery, the returned result will have each value in quotes. | String | 
Query parameters
| Name | Type | Required | 
|---|---|---|
| token | string¦null | 
Body parameters
Supported content types: application/json
Type: ArcadeExpression
An arcade expression evaluator object defining the context type and the jobId to be evaluated.
| Name | Type | Required | Default value | 
|---|---|---|---|
| context | JobArcadeExpressionContext |  | |
| expression | string |  | |
| parseMode | string |  | |
| contextType | string | Job | 
Path parameters
| Name | Type | Required | 
|---|---|---|
| org | string | |
| item | string | 
Response status
| Status | Meaning | Description | Schema | 
|---|---|---|---|
| 200 | OK | Dynamic value based on the expression during execution. | ArcadeExpressionResult | 
| 500 | Internal Server Error | error | WorkflowJsonExceptionDTO | 
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/evaluateArcade \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <YOUR_TOKEN>' \
  --data '{"context":{"jobId":"string"},"expression":"string","parseMode":"Standard","contextType":"BaseContext"}'Response
{
  "result": "string"
}