Say who is who in an imported file
POST
/imports/{importId}/files/{fileId}/mappingSets, for one file of an open import, who each speaker is (interviewer, participant, or ignore), or for a survey table what each column is (question, segment, or ignore), then reads the file again under it. Speaker and column names exactly as get_import gives them in the file's mapping. An interview has exactly one participant. Give either speakers or columns, not both. Calls no model. (The MCP tool map_import_speakers.)
Scope studies:write · Credential a workspace API key (jean_sk_…, make one in the Jean app) or an OAuth access token. See scopes.
curl --fail-with-body -X POST "https://app.jeantechnologies.com/api/v1/imports/IMPORT_ID/files/FILE_ID/mapping" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"speakers": {}
}'
An Idempotency-Key header is optional here and makes a retry safe. See idempotency.
Path
| Name | Type | Required | Notes |
|---|---|---|---|
importId | string (UUID) | yes | |
fileId | string (UUID) | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
speakers | object | no | |
columns | object | no |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
status | "received" | yes |
The full response schema
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "received"
}
},
"required": [
"status"
],
"additionalProperties": false
}
Errors
| Status | Meaning |
|---|---|
400 | The request is not valid: the body is not JSON, a field is wrong (listed in errors), or a required Idempotency-Key is missing. |
401 | No key or token, or one that is wrong, expired or revoked. |
403 | The key or connection lacks the scope this operation needs. scope names it. |
404 | No such address, or no study (or conversation) with that id in this workspace. Another workspace's id is answered the same way. |
409 | The study is not in a state that allows this (the detail says what to do instead), or the Idempotency-Key was used with a different request. |
429 | Too many requests from this key or connection, or the workspace has reached its hourly or daily limit for model calls (title "Workspace model limit reached", window says which). Retry-After says when to try again. |
503 | The language model is not available. Try again later. |
Every error is application/problem+json, the same shape on every endpoint.