CopyHero

Preview Trigger Route

POST
/api/v1/monday/triggers/preview

Render an unsaved field mapping against one Monday item without saving or starting a workflow.

Returns, per workflow input, the value a run would use and whether it comes from the mapping or falls back to the import option, plus every expression error.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body

An unsaved trigger configuration to render against one Monday item.

item (a raw item payload) wins over item_id; with neither, the board's first item is used. Nothing is saved and no workflow starts.

board_id*Board Id
Length1 <= length
field_mapping*
Propertiesproperties <= 200
import_settings?|null
item_id?string|null
item?|null

Response Body

Successful Response

application/json
  1. response
job_start_input*|

The workflow input row a run would start with; null when a field failed.

fields?
expression_errors?

Per workflow input, why its mapping failed on this item. A run with any error fails instead of starting a workflow.

not_previewable?array<string>

Workflow inputs whose expression reads event, which only a real run has. The preview skips them and leaves job_start_input null.

item_id*|

The item the mapping was rendered against; null when the board has no items and only compile errors could be checked.

item_name?string|null
Example Request
curl -X POST 'https://app.copyhero.app/api/v1/monday/triggers/preview' \  -H 'Content-Type: application/json' \  -d '{  "board_id": "string",  "field_mapping": {    "property1": {      "mode": "column",      "value": "string"    },    "property2": {      "mode": "column",      "value": "string"    }  }}'
Example Response
{  "job_start_input": {},  "fields": {    "property1": {      "value": null,      "source": "mapped"    },    "property2": {      "value": null,      "source": "mapped"    }  },  "expression_errors": {    "property1": "string",    "property2": "string"  },  "not_previewable": [    "string"  ],  "item_id": "string",  "item_name": "string"}