cURL
curl --request POST \ --url https://api.getversive.com/api/v1/studies/{study_id}/ai-edit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "current_message": "Add a question about age", "questions": [], "language": "English" } '
{ "questions": [ { "id": "q_new_1", "content": "What is your experience level?", "type": "text", "is_new": true } ], "change_log": { "summary": "Added a question about experience." }, "deleted_questions": [] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response