old_contents: import requests
  
  def update_status_cake(event):
      properties = event['ResourceProperties']
      test_id = 1234
      parameters = {'TestID': test_id}
      headers = {'API': properties['apiKey'], 'Username': properties['userName']}
      r = requests.put('https://www.statuscake.com/API/Tests/Update', data=parameters, headers=headers)
      response = r.text
      print(response)
  
  
  event=dict()
  update_status_cake(event)
  
  
new_contents: import requests
  
  def update_status_cake(event):
      properties = event['ResourceProperties']
      test_id = 1234
      parameters = {'TestID': test_id}
      headers = {'API': properties['apiKey'], 'Username': properties['userName']}
      r = requests.put('https://www.statuscake.com/API/Tests/Update', data=parameters, headers=headers)
      response = r.text
  
  
  
subject: delete legacy test