How to update a user keyword alert

You can update a keyword alert for a user by using the following URL and specifying the required parameters.

 

 Method URL
 POST  https://api.fairwarningsoftware.com/v1.1.1/user/alerts/update

 

Request
{
        "alert_id": <alert_id>,
        "alert_active": <alert_active>,
        "alert_keyword": <alert_keyword>
}

 

 Field  Type Description
alert_id int The ID of the keyword alert being updated.
alert_active bool Whether the alert should be active or not.
alert_keyword string The keyword(s) for the alert.

 

If successful, a success response will be returned.  If not, an error will be returned instead.

 Status Response
 200 {
        "success": <success>
}
401  {"error":"The API keys provided are invalid."}
403  {"error":"API keys are missing."}
500  {"error": <custom error>}

 

 Field  Type Description
success bool Whether or not the request was successful