post/quizzes

Request

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

Headers

api_keystring required

Request body

paywall_idinteger nullable

Optional ID of the paywall that follows this quiz. When omitted or set to 0, the quiz falls back to the project's default /paywall.

namestring required
slugstring required
themestring nullable
languagestring nullable
countrystring nullable

ISO 3166-1 alpha-2 country code

tagsstring[]
custom_head_htmlstring nullable
custom_cssstring nullable
faviconstring nullable

Favicon CDN URL (upload via POST /project-files/upload first).

source_quizinteger nullable
auto_languagesinteger nullable
templates_version1 | 2 nullable

Quiz templates version. Defaults to 2 when omitted.

published_versioninteger nullable
css_variablesobject nullable
no_cookieboolean nullable
screensstring json nullable

JSON string with quiz screens content

Response

Quiz created

successinteger

Example response

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

Changes

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property /

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status