← Documentation home
PATCH
/hyax-api/v1/community/settingsUpdate community access settings
Replaces all access requirements atomically.
Base URL: https://platform.hyax.com · Replace YOUR_API_KEY with your team API key.
Request body
| Field | Required | Description |
|---|---|---|
| accessType | Yes | `FREE` | `PAID` |
| requiredProductIds | No | String array of product IDs (when PAID) |
| requiredMembershipPlanIds | No | String array of membership plan IDs (when PAID) |
Request examples
Same request in cURL, Node.js (fetch), and PHP (ext-curl).
curl -X PATCH 'https://platform.hyax.com/hyax-api/v1/community/settings' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"accessType": "PAID",
"requiredProductIds": [],
"requiredMembershipPlanIds": [
"clx…"
]
}'Example response
Shape varies by data; values are illustrative.
{
"success": true,
"data": {
"accessType": "PAID",
"requiredProducts": [],
"requiredMembershipPlans": [{ "id": "clx…", "name": "Pro", "status": "ACTIVE" }]
}
}