Snippets
Update a snippet
Changed onUpdates a snippet.
put/v1/snippets/{id}
Request
- Base URLhttps://api.checklyhq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idinteger required
Headers
x-checkly-accountstring
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
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- breaking
the
request property's minLength was increased from0to1 - breaking
the
request property's minLength was increased from0to1 - warning
for the
pathrequest parameterid, the exclusiveMinimum was set totrue - warning
for the
pathrequest parameterid, the min was set to0.00 - info
added the non-success response with the status
- breaking