POST
/
organisations
/
{organisationId}
/
boards
/
{boardId}
/
actors
/
{actorId}
/
code
/
preview
curl --request POST \
  --url https://api.switchboard.svc.versori.io/v1alpha1/organisations/{organisationId}/boards/{boardId}/actors/{actorId}/code/preview \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "<string>",
  "data": {},
  "selectors": {},
  "userId": "<string>"
}'
{
  "executionId": "<string>",
  "output": {}
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organisationId
string
required
boardId
string
required
actorId
string
required

Body

application/json
code
string
required

The code data form the code action.

data
object
required

The input data form the code action.

selectors
object
required

The selector data form the code action.

userId
string
required

Id of the user.

Response

200 - application/json
executionId
string
required

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

output
object
required

The output data from the transformer.