Duplicate a quiz inside the current project: settings, screens, CSS variables are copied into a new quiz (published version resets to 1, the Published tag is dropped). Same as the "Copy" action in the cabinet.

post/quizzes/{quizId}/copy

Request

  • Base URL
    https://api.web2wave.com/api
  • URL
    https://api.web2wave.com/api/quizzes/{quizId}/copy
  • Auth
    API key in header api_key

Path parameters

quizIdinteger required

Headers

api_keystring required

Request body

namestring

Name of the copy. Defaults to "<source name> (copy)".

slugstring

Slug of the copy (lowercased, only 0-9 a-z - _), unique within the project. Defaults to "<source slug>-copy" (with a numeric suffix if taken).

Response

Quiz copied

successinteger

Example response

{
  "success": 1,
  "quiz": {
    "id": 131,
    "project_id": 78,
    "paywall_id": 89,
    "name": "Transform Chaos into Clarity",
    "slug": "transform-chaos-into-clarity"
  }
}

Changes