# mapLibraryFileRun

Map a run's columns with the import mapper (up to a few minutes). skipTrace is true for a SKIPTRACE run and false for TAG_PROPERTIES. Returns totalRows and the columns with example values (csvSample). Nothing runs.

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

## Variables

- `fileProcessingTaskId`: `ID!` (required)
- `skipTrace`: `Boolean!` (required)

## Response (data, an example)

```json
{
  "fileProcessingTaskMutation": {
    "skipTraceRun (if $skipTrace)": {
      "id": "<ID>",
      "status": "CREATED",
      "transformerAuthoringState": "COMPLETED",
      "hasAuthoredTransformer": true,
      "totalRows": 0,
      "csvSample": [
        {
          "header": "…",
          "exampleData": [
            "…"
          ]
        }
      ]
    },
    "tagRun (unless $skipTrace)": {
      "id": "<ID>",
      "status": "CREATED",
      "transformerAuthoringState": "COMPLETED",
      "hasAuthoredTransformer": true,
      "totalRows": 0,
      "csvSample": [
        {
          "header": "…",
          "exampleData": [
            "…"
          ]
        }
      ]
    }
  }
}
```

## 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": "mapLibraryFileRun",
    "variables": {
      "fileProcessingTaskId": "<fileProcessingTaskId>",
      "skipTrace": true
    }
  }'
```
