Setup
To use the MembershipQuestions API, install the @wix/groups
package using npm or Yarn:
1npm install @wix/groups
or
1yarn add @wix/groups
Then import { membershipQuestions }
from @wix/groups
:
1import { membershipQuestions } from '@wix/groups'
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates membership questions if none have been set up. Otherwise, replaces all existing questions.
Notes:
- Only admins can create or replace membership questions.
- Providing an empty array means that members won't have to answer any question when joining the group.
Note: This endpoint requires visitor or member authentication.
function createOrReplaceAllMembershipQuestions(groupId: string, options: CreateOrReplaceAllMembershipQuestionsOptions): Promise<CreateOrReplaceAllMembershipQuestionsResponse>
Group ID.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the answers to the membership questions, given the provided filters.
Note: This endpoint requires visitor or member authentication.
function listAnswers(groupId: string, options: ListAnswersOptions): Promise<ListAnswersResponse>
Group ID.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the membership questions for the given group.
Note: This endpoint requires visitor or member authentication.
function listMembershipQuestions(groupId: string): Promise<ListMembershipQuestionsResponse>
Group ID.