Community articleWorking with flagged community files programmatically
Added by IBM contributorIBM on December 21, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Using the Atom Publishing Protocol, also known as AtomPub, you can retrieve, update, or delete community files that have been flagged as inappropriate. You can also take action on the file.



Using the Atom Publishing Protocol, also known as AtomPub, you can retrieve, update, or delete community files that have been flagged as inappropriate. You can also take action on the file.

If you want to remove a flagged file, see Acting on a flagged file. If you want to update the content of a flagged file, see Updating flagged files.
Getting a list of flagged community files
Get a feed that lists the community files that have been flagged as inappropriate and are awaiting action by the moderator.

Acting on a flagged community file
To programmatically take action on a community file that has been flagged as inappropriate, send an Atom entry document that defines the action you want to take to the moderation action feed.

Retrieving a flagged community file
To retrieve a flagged community file, use the link element found in the file entry.

Updating a flagged community file
To update a community file that has been flagged as inappropriate, send a moderation action entry in Atom format to the href attribute of the entry's rel=edit link. You can update the entry's title, content and tag elements only.

Deleting flagged community files
To delete a flagged community file, use the HTTP DELETE method.