Communities API — OAuth2 scopes

Scope per endpoint

Each endpoint is guarded by exactly one OAuth2 scope. Calling an endpoint without its scope returns 403 (forbidden).

Community scopes

ScopeMethodEndpointGrants
community:readGET/v1/communities, /v1/communities/{communityId}List or read a single community
community:createPOST/v1/communitiesCreate a community
community:updatePATCH/v1/communities/{communityId}Update community fields
community:deleteDELETE/v1/communities/{communityId}Soft-delete a community

Member scopes

ScopeMethodEndpointGrants
community-member:readGET/v1/communities/{communityId}/membersList members
community-member:createPOST/v1/communities/{communityId}/membersAdd members with roles
community-member:createPOST/v1/communities/{communityId}/ouAdd an organisational unit
community-member:deleteDELETE/v1/communities/{communityId}/members/{memberId}Remove a member
community-member:deleteDELETE/v1/communities/{communityId}/ou/{ouId}Remove an organisational unit

Topic scopes

ScopeMethodEndpointGrants
community-topic:readGET/v1/communities/{communityId}/topics, /v1/communities/{communityId}/topics/{topicId}List or read a topic
community-topic:createPOST/v1/communities/{communityId}/topicsCreate a topic
community-topic:updatePATCH/v1/communities/{communityId}/topics/{topicId}Update a topic
community-topic:deleteDELETE/v1/communities/{communityId}/topics/{topicId}Delete a topic

Post scopes

ScopeMethodEndpointGrants
community-post:readGET/v1/communities/{communityId}/posts, /v1/communities/{communityId}/posts/{postId}List or read a post
community-post:createPOST/v1/communities/{communityId}/postsCreate a post
community-post:updatePATCH/v1/communities/{communityId}/posts/{postId}Update a post
community-post:deleteDELETE/v1/communities/{communityId}/posts/{postId}Soft-delete a post

Comment scopes

ScopeMethodEndpointGrants
community-comment:readGET/v1/communities/{communityId}/posts/{postId}/commentsList comments on a post
community-comment:deleteDELETE/v1/communities/{communityId}/posts/{postId}/comments/{commentId}Delete a comment (moderation)

TIP

A scope grants the ability to call an endpoint. Some endpoints also require the calling user to have a specific role within the community (e.g. admin or moderator) to succeed.