PUT /API/Tests/Update

Basic Intro

Using the HTTP header PUT will add or update a test. You can update by ensuring you provide a TestID within the form data. The data sent should be in x-www-form-urlencoded format.

Accepted Data
Example Request

The following request would change the website name for the testID 26309 to "MySite".

curl -H "API: [API Key]" -H "Username: [Username]"  -d "TestID=26309&WebsiteName=MySite" -X PUT https://app.statuscake.com/API/Tests/Update

Example Output

The output is returned as a json array

    "Issues": [], // An array of human readable reasons
    "Success": false, // True or False if Success
    "Message": "Required Data is Missing." // A Human Readable Reason
    "InsertID": 7555 // Only sent if inserting