Communities

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

/communities [GET]

Get a list of all communities.

Return Example

* /communities [POST]

Create a new community.

Request Example

/communities/{id} [GET]

Get a specific community by its ID.

Return Example

* /communities/{id} [DELETE]

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

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

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

Request Example

* /communities/{id} [PUT]

Join a community by its ID.

* /communities/{id}/leave [DELETE]

Leave a community by its ID.

Last updated