Workspace API

Struktura społeczności

Endpointy „Struktura społeczności” Zanfia Workspace API — ze schematami i przykładami kodu.

4 min czytaniaOstatnia aktualizacja: 26 lip 2026

Zarządzanie kanałami i grupami. Treści społeczności — posty, komentarze, czat — obsługuje Community API. Wszystkie endpointy wymagają nagłówka Authorization: Bearer — zobacz Uwierzytelnianie.

Utwórz kanał

POST/communities/{communityId}/channels

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/communities/string/channels" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "type": "feed"  }'
{  "channel": {    "id": "string",    "name": "string",    "type": "feed",    "groupId": "string",    "description": "string",    "readonly": true,    "access": "inherit"  }}
{  "error": "string"}

Utwórz grupę kanałów

POST/communities/{communityId}/groups

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/communities/string/groups" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "group": {    "id": "string",    "name": "string",    "description": "string"  }}
{  "error": "string"}

Aktualizuj kanał

PATCH/communities/{communityId}/channels/{channelId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

channelId*string

Channel id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/communities/string/channels/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "channel": {    "id": "string",    "name": "string",    "type": "feed",    "groupId": "string",    "description": "string",    "readonly": true,    "access": "inherit"  }}
{  "error": "string"}

Usuń kanał

DELETE/communities/{communityId}/channels/{channelId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

channelId*string

Channel id

Response Body

application/json

application/json

curl -X DELETE "https://example.com/communities/string/channels/string"
{  "channelId": "string"}
{  "error": "string"}

Aktualizuj grupę

PATCH/communities/{communityId}/groups/{groupId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

groupId*string

Channel group id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X PATCH "https://example.com/communities/string/groups/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "group": {    "id": "string",    "name": "string",    "description": "string"  }}
{  "error": "string"}

Usuń grupę

DELETE/communities/{communityId}/groups/{groupId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

groupId*string

Channel group id

Response Body

application/json

application/json

curl -X DELETE "https://example.com/communities/string/groups/string"
{  "groupId": "string"}
{  "error": "string"}

Zmień kolejność lub położenie kanału/grupy

POST/communities/{communityId}/move-node

Authorization

bearerAuth
AuthorizationBearer <token>

API key from Dashboard → Integrations → API, MCP and CLI.

In: header

Path Parameters

communityId*string

Community id

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Flat mirror of the MoveContentNode intent (one node + one target per call).

Response Body

application/json

application/json

curl -X POST "https://example.com/communities/string/move-node" \  -H "Content-Type: application/json" \  -d '{    "nodeType": "channel",    "nodeId": "string",    "positionMode": "into-group"  }'
{  "communityId": "string"}
{  "error": "string"}

Czy ten artykuł był pomocny?

Powiązane artykuły

Coś się nie zgadza? Napisz do nas na support@zanfia.com.