Update study
/v1/api/studies/{study_id}:refine Requires studies:writeUpdate a study with further plain-language instructions from the user — in Test mode or Live mode. The technical :refine path and refine_study operation name are retained for wire compatibility. Each update creates a new design version. Upload new documents first and include their file_ids when they are part of the update. Returns a job_id; poll Check authoring status like a fresh authoring run.
Parameters
study_id string <uuid> Request body application/json
guidance string Plain-language instruction from the user: the research goal, intended participants, and what the user wants to learn — or, when updating, what to change. A sentence or two is enough.
file_ids string[] · nullable Optional file ids from POST /v1/api/files. Include them when documents are part of Create a study or Update a study.
Responses
job_id string Authoring job handle. Poll GET /v1/api/studies/jobs/{job_id} until status is 'ready'.
thread_id string <uuid> The authoring conversation thread the run executes in.
ValidationError[] curl -X POST 'https://api.heyjuno.co/v1/api/studies/3fa85f64-5717-4562-b3fc-2c963f66afa6:refine' \
-H 'Authorization: Bearer $JUNO_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"guidance": "Interview 10 recent churned customers about why they cancelled.",
"file_ids": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
}'{
"job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"thread_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}