Skip to content
Insy
For developers
Esc
↑↓navigate↵open⌘Jpreview

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) · headerrequired
API Key for programmatic access (format: insy_xxxxx)
Path parameters
slugstringrequired
Request body
requiredapplication/json
publishedbooleanrequired
true publishes, false unpublishes.
Responses
200Successful response
successbooleanrequired
Whether the request was successful
errorCodestringrequired
The error code returned by the request
Allowed:not_foundbad_requestalready_existsunauthorizedforbiddeninternal_server_errorservice_unavailabletimeoutconflictprecondition_failedunprocessable_entitytoo_many_requests
messagestringrequired
The message returned by the request
dataV1PublishedObject
Show properties
namestringrequired
publishedbooleanrequired
unchangedboolean
Present and true when it already was in that state.
urlstring
Public page.
manageUrlstring
Dashboard 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
}'
Response
{
  "success": true,
  "errorCode": "not_found",
  "message": "Success",
  "data": {
    "name": "string",
    "published": true,
    "unchanged": true,
    "url": "string",
    "manageUrl": "string"
  }
}