Add a vote on a file

With this endpoint you can post a vote for a given file. The body for the POST request must be the JSON representation of a vote object. Notice however that you don't need to provide an ID for the object, as they are automatically generated for new votes.

The verdict attribute must have be either harmless or malicious.

Returns a Vote object.

{
  "data": {
    "type": "vote",
    "attributes": {
    	"verdict": "harmless"
    }
  }
}
Path Params
string
required
Body Params
json
required
Defaults to {"type": "vote", "attributes": {"verdict": "malicious"}}
Headers
string
required
Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json