Update a snippet
Updates a snippet.
Path parameters
Headers
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Your Checkly account ID, you can find it at https://app.checklyhq.com/settings/account/general
Request body
Example request
{
"name": "Snippet",
"script": "request.url = request.url + '/extra'"
}Response
Successful
Example response
{
"id": 1,
"name": "Snippet",
"script": "request.url = request.url + '/extra'"
}Changes
Changed in 1 of the 4 revisions of this API.221
- ▲
the
namerequest property's minLength was increased from0to1request-property-min-length-increased
- ▲
the
scriptrequest property's minLength was increased from0to1request-property-min-length-increased
- ●
for the
pathrequest parameterid, the exclusiveMinimum was set totruerequest-parameter-exclusive-min-set
- ●
for the
pathrequest parameterid, the min was set to0.00request-parameter-min-set
- ○
added the non-success response with the status
400response-non-success-status-added
This revision also has 566 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲