Turn an import into interviews
/imports/{importId}/promotePromotes a reviewed import: each usable conversation becomes an interview of a study (a new study named after the import, or studyId, a study an earlier import made), counted as reviewed by the person whose key or connection this is, and the study's results are written. Refused while any file is still being read, needs mapping, or is with Jean's team. Failed files, duplicates and conversations that cannot be used are left out and counted. Imported interviews are real people's words and count as people; they carry the right to analyse only, unless a member attested more in the app. Calling it again does nothing new. (The MCP tool promote_import.)
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/promote" \
-H "Authorization: Bearer $JEAN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"studyId": "STUDY_ID"
}'
An Idempotency-Key header is optional here and makes a retry safe. See idempotency.
Path
| Name | Type | Required | Notes |
|---|---|---|---|
importId | string (UUID) | yes |
Body
| Field | Type | Required | Notes |
|---|---|---|---|
studyId | string | no | A study an earlier import made, to add these interviews to. Default: a new study. At most 64 characters. |
Response · 200
| Field | Type | Required | Notes |
|---|---|---|---|
studyId | string | yes | |
interviews | integer | yes | |
skipped | object | yes | |
skipped.failed | integer | yes | |
skipped.duplicates | integer | yes | |
skipped.problems | integer | yes | |
url | string | yes |
The full response schema
{
"type": "object",
"properties": {
"studyId": {
"type": "string"
},
"interviews": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"skipped": {
"type": "object",
"properties": {
"failed": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"duplicates": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"problems": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"failed",
"duplicates",
"problems"
],
"additionalProperties": false
},
"url": {
"type": "string"
}
},
"required": [
"studyId",
"interviews",
"skipped",
"url"
],
"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.