RHP_API

<back to all web services

CreateAbuseReport

Creates a report. Returns HTTP Status code 201 if successful.

Requires Authentication
The following routes are available for this service:
POST/Profile/{Id}/Report
POST/Profiles/{Id}/Report
CreateAbuseReport Parameters:
NameParameterData TypeRequiredDescription
IdpathlongNoUserID of profile that is to be reported or the user who authored the reported item.
CategorybodyAbuseReportTypeNo
MsgbodystringNoReport message from the user or supplied by the system.
TypebodyAbuseReportReasonNo
MetaDataIDbodyintNoThe ID to identify the reported item, if available.
MessageTextbodystringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Profile/{Id}/Report HTTP/1.1 
Host: tstsrvs.redhotpie.com.au 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":0,"Category":"System","Msg":"String","Type":"Other","MetaDataID":0,"MessageText":"String"}