people-groupCommunities

This section describes the endpoints for managing communities.

Community Model

The Community object represents a community in the system.

Community Object
{
    "id": 0,
    "name": "string",
    "description": "string",
    "members": [0],
    "posts": [0],
    "icon": "string",
    "banner": "string",
    "nsfw": false,
    "private": false,
    "creation_date": 0,
    "owner": 0
}

Endpoints

chevron-right/communities [GET]hashtag

Get a list of all communities.

Return Example

chevron-right* /communities [POST]hashtag

Create a new community.

Request Example

chevron-right/communities/{id} [GET]hashtag

Get a specific community by its ID.

Return Example

chevron-right* /communities/{id} [DELETE]hashtag

Delete a specific community by its ID. You must be the owner of the community.

chevron-right* /communities/{id}/change-description [PUT]hashtag

Edit a community's description. You must be the owner of the community.

Request Example

chevron-right* /communities/{id} [PUT]hashtag

Join a community by its ID.

chevron-right* /communities/{id}/leave [DELETE]hashtag

Leave a community by its ID.

Last updated