# recordEventWorkflowPayloadSample

Save an example payload (a JSON object, what the sender would POST) on an EVENT workflow, so its fields can be mapped before anything arrives. Starts no run, sends nothing, leaves the graph alone. Refused on a workflow the key owner cannot edit.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "recordEventWorkflowPayloadSample", "variables": {...} }`
- Scope: `WRITE`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `workflowGroupId`: `ID!` (required)
- `payload`: `JSON!` (required)

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "recordEventWorkflowPayloadSample": {
      "id": "<ID>",
      "source": "WEBHOOK",
      "receivedAt": "2026-01-01T00:00:00.000Z"
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "recordEventWorkflowPayloadSample",
    "variables": {
      "workflowGroupId": "<workflowGroupId>",
      "payload": "<JSON>"
    }
  }'
```
