Membership Configuration API

Get membership configuration

Returns the design-time (editor) membership configuration for the site. This is the draft configuration in the editor; the published live site may not match until publish.

get/api/sites/multiscreen/{site_name}/membership/configuration

Request

  • Base URL
    https://api.duda.co
  • URL
    https://api.duda.co/api/sites/multiscreen/{site_name}/membership/configuration
  • Auth
    HTTP basic

Path parameters

site_namestring required

The site's unique name (its ID), returned when the site is created.

Response

OK

membership_restriction_type'SELECTED_PAGES' | 'ALL_PAGES'

ALL_PAGES: entire site is members-only. SELECTED_PAGES: only resources listed in resources_protection_rules are protected.

Example response

{
  "members_access": {
    "access_type": "AUTO_APPROVE"
  },
  "membership_restriction_type": "SELECTED_PAGES",
  "resources_protection_rules": [
    {
      "id": "7b31a091a92049bba02315a3c718ecb1",
      "protection_type": "MEMBERS_ONLY",
      "type": "PAGE"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.