PUT

Create Or Replace All Membership Questions


Creates membership questions if none have been set up. Otherwise, replaces all existing questions.

Providing an empty array means that members won't have to answer any question when joining the group. Only admins can create or replace membership questions.

Note: This endpoint requires visitor or member authentication.

Endpoint
PUT
https://www.wixapis.com/social-groups-proxy/questions/v2/membership-questions/{groupId}

Path Params
groupIdstringRequired

Group ID.

Body Params
questionsArray <MembershipQuestion>maxItems 50

New membership questions.

Response Object
questionsArray <MembershipQuestion>

Membership questions.

Create Or Replace All Membership Questions Example 1
Request
cURL
curl -X PUT \ https://wixapis.com/social-groups/v2/membership-questions/707c1e28-c111-46e1-bafa-4e97c8fa490f \ -H 'Content-Type: application/json;charset=UTF-8' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "questions": [ { "id": "8b27a70c-d80d-4a5d-a67c-2fb376f0656e", "required": true, "text": "Question 1" }, { "id": "2d233a05-6153-4318-89b6-e7f069389943", "required": false, "text": "Question 2" } ] }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?