Edit, publish, open, or close a study
prism_studies_updatepublish: true takes a draft live (one-way — the participant link starts working). closed toggles whether a live study accepts responses. Also edits the study: title, the questions instrument (whole replacement — read prism_studies_get first; LOCKED once responses exist, the server refuses with invalid and the answer is a new study), adaptiveFollowUps (AI probes on curious answers), the closing chat (endChatEnabled + endChatFocus), completionRedirectUrl for a BYO panel (null clears), and autoAnalyzeTarget (null = manual only). Study ids come from prism_studies_list_workspace. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| closed | No | ||
| publish | No | ||
| studyId | Yes | ||
| questions | No | Replacement instrument (drafts only): ordered list of { type, prompt, options?, … } — read prism_studies_get for the shape. | |
| workspace | No | Workspace slug. Personal tokens with no default workspace MUST pass this; tokens with a default can override per call. Ignored for workspace API keys. | |
| approvalId | No | ||
| endChatFocus | No | What the closing chat should be about; null clears. | |
| endChatEnabled | No | ||
| adaptiveFollowUps | No | ||
| autoAnalyzeTarget | No | ||
| completionRedirectUrl | No | http(s) URL respondents land on after submitting ({pid} = participant id); null clears. |