post
https://api.testlify.com/v1/test/library//question
Adds a single question to the given test library.
Behavior to be aware of:
- If a question with the same text, type, and answer options already exists in this library, the request is rejected as a duplicate.
skillIdmay reference an existing skill on the library, or a skill name that doesn't exist yet — in the latter case it's automatically added as a new skill. If it's left blank and the library has no skills yet, the request is rejected.- If
isCommentMandatoryis enabled,isCommentAllowedmust also be enabled. - Audio/video-based question types require
recordingTimegreater than 0. - For a "most/least impactful" multiple-choice question, exactly one option must be marked most impactful and exactly one least impactful, and both must carry a numeric score.
- AI-driven question types using an advanced prompt require a non-blank
aiPrompt; conversation-simulation questions also require a non-blankaiPersona. - Newly created questions are always published immediately.
- After a question is added, the parent library's question count, scoring, and status (draft → published once it has at least one question) update automatically.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…