Newer Version Available
Moderation Flags on a Feed Item
In Experience Cloud sites, get a flagged post, flag a post for
moderation, and delete moderation flags.
If the context user has the Moderate Experiences Feeds
permission, get the number of times members flagged a post, flag a post for moderation, and
delete all flags on a post.
If the context user isn’t a moderator, get whether the user flagged a post, flag a post for moderation, and remove a flag the user previously added.
- Resource
-
1/connect/communities/communityId/chatter/feed-items/feedItemId/moderation-flags - Available version
- 29.0–31.0
- Requires Chatter
- Yes
- HTTP methods
- GET, DELETE, POST
- Request parameters for GET
-
Name Type Description Required or Optional Available Version visibility String Visibility behavior of a flag for various user types. - ModeratorsOnly—The flag is visible only to users with moderation permissions on the flagged element or item.
- SelfAndModerators—The flag is visible to the creator of the flag and to users with moderation permissions on the flagged element or item.
Optional 30.0–31.0 - Request body for POST
-
- Root XML tag
- <moderationFlag>
- JSON
-
1{ 2 "note" : "Flagged by moderator as spam on 6.6.16.", 3 "type" : "FlagAsSpam", 4 "visibility" : "ModeratorsOnly" 5} - Properties
-
- Request parameters for POST
-
Name Type Description Required or Optional Available Version visibility String Visibility behavior of a flag for various user types. - ModeratorsOnly—The flag is visible only to users with moderation permissions on the flagged element or item.
- SelfAndModerators—The flag is visible to the creator of the flag and to users with moderation permissions on the flagged element or item.
Optional 30.0–31.0 - Request parameters for DELETE
-
Name Type Description Required or Optional Available Version userId String The ID of the context user. If specified, removes the flag the user previously added to the post. If not specified and the context user is a moderator, removes all flags on the post. Optional 29.0–31.0 - Response body for GET and POST
- Moderation Flags
- Response for DELETE
- 204: Successful Delete