Publish or unpublish a community
Publishing needs billing details and Stripe set up (reason: billing_details_missing otherwise).
Scope: communities.write.
PATCH
/v1/communities/{slug}Authorization
AuthorizationBearer token (API Key) · headerrequiredAPI Key for programmatic access (format: insy_xxxxx)
Path parameters
slugstringrequiredRequest body
requiredapplication/jsonpublishedbooleanrequiredtrue publishes, false unpublishes.
Responses
200Successful response
successbooleanrequiredWhether the request was successful
errorCodestringrequiredThe error code returned by the request
Allowed:
not_foundbad_requestalready_existsunauthorizedforbiddeninternal_server_errorservice_unavailabletimeoutconflictprecondition_failedunprocessable_entitytoo_many_requestsmessagestringrequiredThe message returned by the request
dataV1PublishedObjectShow propertiesHide properties
namestringrequiredpublishedbooleanrequiredunchangedbooleanPresent and true when it already was in that state.
urlstringPublic page.
manageUrlstringDashboard page (communities only).
400Invalid input (`errorCode: bad_request`, `reason: invalid_input`).
401Missing, invalid or expired access token or API key.
403The token lacks the operation's scope (`reason: insufficient_scope`).
429Per-account rate limit (120/min, 3000/h, shared with `/mcp`); see `Retry-After`.
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X PATCH "https://api.insy.io/v1/communities/string" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"published": true
}'const response = await fetch("https://api.insy.io/v1/communities/string", {
method: "PATCH",
headers: {
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
body: JSON.stringify({
"published": true
})
});import requests
response = requests.patch(
"https://api.insy.io/v1/communities/string",
headers={
"Authorization": "Bearer YOUR_TOKEN",
"Content-Type": "application/json"
},
json={
"published": True
},
)Response
{
"success": true,
"errorCode": "not_found",
"message": "Success",
"data": {
"name": "string",
"published": true,
"unchanged": true,
"url": "string",
"manageUrl": "string"
}
}Invalid input (`errorCode: bad_request`, `reason: invalid_input`).
Missing, invalid or expired access token or API key.
The token lacks the operation's scope (`reason: insufficient_scope`).
Per-account rate limit (120/min, 3000/h, shared with `/mcp`); see `Retry-After`.