Community articleFlagging a file as inappropriate
Added by IBM contributorIBM on June 23, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

To flag a file as inappropriate, send an Atom entry document containing the report to the Files content reporting mechanism.



To flag a file as inappropriate, send an Atom entry document containing the report to the Files content reporting mechanism.

See Authenticating requests for information about how to authenticate the request.

To flag a file as inappropriate, complete the following steps:
 

 

  1. Retrieve a feed that contains the file that you want to flag. For details, see Getting a feed of a person's library.
  2. Find the entry that represents the file, and then make a note of the value of its <td:uuid> element.
  3. Create a report entry document to send as input on the request. In it, identify the file that you want to flag by including a link element that contains a ref attribute equal to the <td:uuid> value that you noted in the previous step.
  4. Send a POST request to the URI specified in the table below. Pass the report entry document as input on the request.

Input


Provide a report Atom entry document. The content type of the Atom entry document must be application/atom+xml.

Output


None.
 

 

Input
Method URI Description
POST /files/basic/api/reports Flag a file as inappropriate
Content Type: application/atom+xml
Sample Request:
<entry 

 xmlns="http://www.w3.org/2005/Atom" 

 xmlns:snx="http://www.ibm.com/xmlns/prod/sn">

<snx:in-ref-to 

 rel="http://www.ibm.com/xmlns/prod/sn/report-item" 

 ref="5c914844-9faa-41db-90c0-26709cb56d2c" 

 ref-item-type="document" />

<content type="text">Human Resources would object to this image.</content>

</entry> 

Output
Code Description
202
Indicates that the flag was accepted. If an error occurs, this header contains one of the error codes.
400
Bad Request.
401
Unauthorized.