POST
/
organisations
/
{organisationId}
/
boards
/
{boardId}
/
actors
/
{actorId}
/
code
/
preview
Preview the output of a Code Action.
curl --request POST \
  --url https://platform.versori.com/api/switchboard/v1alpha1/organisations/{organisationId}/boards/{boardId}/actors/{actorId}/code/preview \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "selectors": {},
  "data": {},
  "code": "<string>",
  "userId": "<string>"
}'
{
  "output": {},
  "executionId": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

organisationId
string
required
boardId
string
required
actorId
string
required

Body

application/json

Payload to pass configuration and preview input data to the Code Action.

selectors
object
required

The selector data form the code action.

data
object
required

The input data form the code action.

code
string
required

The code data form the code action.

userId
string
required

Id of the user.

Response

The processed data from the code action.

output
object
required

The output data from the transformer.

executionId
string
required

Id of the execution that can be used to search logs.