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

post/paywalls/{paywallId}/copy

Request

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

Path parameters

paywallIdinteger 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

Paywall copied

successinteger

Example response

{
  "success": 1,
  "paywall": {
    "id": 210,
    "project_id": 78,
    "slug": "api-paywall",
    "name": "API Paywall",
    "payment_system": "stripe",
    "after_pay_redirect": {
      "id": 24757
    },
    "prices": [
      {
        "after_pay_redirect": {
          "id": 24757
        }
      }
    ],
    "source_data": "JSON"
  }
}

Changes