Snippets
Create a snippet
Changed onCreates a new snippet.
post/v1/snippets
Request
- Base URLhttps://api.checklyhq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Created
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 - info
added the non-success response with the status
- breaking