Follow

Delete a scheduled test

Description

The 'Delete Scheduled test' BlazeMeter API enables you to delete existing scheduled tests and 'Multi Tests'. This API includes a parameter to identify the scheduled test.

URL

https://a.blazemeter.com/api/v4/schedules/id

Request Headers

Parameter Description
x-api-key Identifies the user ( --user 'id:secret' ). How to get the API Key?

Request Path Parameters

Parameter Description

id

Identifies the scheduled test


cURL

curl -X DELETE https://a.blazemeter.com/api/v4/schedules/58b6e7cd8f6d876e768b4567 --user 'id:secret'

Python

import requests

payload = "{\n        \"cron\": \"* * 2 3 *\",\n        \"testId\": 1328776\n}"
def scheduleTest(scheduleId):
return requests.delete(
'https://a.blazemeter.com/api/v4/schedules/{0}/'.format(scheduleId), data=payload, auth=('id','secret'))
res = scheduleTest(<id>) 
print(response.text)

Example Response

204 - Successfully deleted

404 - Job ID doesn't exist

 

 

 



Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.