Delete cookie config API in Website Scanner
Use this API to delete a cookie configuration. Scans already using the configuration continue to run with the last known cookie values.
delete cookie config
If Geo Region Restriction (GRR) is enabled for your account, add your region code to the host name:
api-accessibility-<region>.browserstack.com. See Geo Region Restriction endpoints for the region codes and examples.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X DELETE "https://api-accessibility.browserstack.com/api/website-scanner/v1/cookie_configs/24"
-
id* Integer
The unique ID of the cookie configuration to delete.
Response attributes 200 OK JSON
Response
{
"success": true,
"data": {
"message": "Cookie configuration has been deleted"
},
"error": null
}
-
success Boolean
Indicates whether the request was successful.
-
data Object
â–¶ SHOW VALUESContains the deletion confirmation message.
-
message String
Confirmation message indicating the cookie configuration has been deleted.
-
Error responses 404 Not Found
The API returns a 404 status code if the cookie configuration ID doesn’t exist or belongs to another account.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.