Edit a browser test
PUT {{baseUrl}}/api/v1/synthetics/tests/browser/:public_id
Edit the configuration of a Synthetic browser test.
Request Body
{"config"=>{"request"=>{"allow_insecure"=>true, "basicAuth"=>{"password"=>"PaSSw0RD!", "username"=>"my_username", "type"=>"web"}, "body"=>"commodo mollit non dolor", "bodyType"=>"text/plain", "callType"=>"unary", "certificate"=>{"cert"=>{"content"=>"non fugiat nostrud", "filename"=>"incididunt proide", "updatedAt"=>"minim id"}, "key"=>{"content"=>"in voluptate", "filename"=>"aute fugiat", "updatedAt"=>"quis ut aliqua"}}, "compressedJsonDescriptor"=>"laboris", "dnsServer"=>"proident ut commodo aliqua", "dnsServerPort"=>39827, "follow_redirects"=>false, "headers"=>{"enim_cd2"=>"in culpa ex"}, "host"=>"id ipsum labore commodo nulla", "message"=>"tempor enim ea minim aliquip", "metadata"=>{"Duisf"=>"labore exer", "exe"=>"aliquip nulla dolore", "dolore_b"=>"minim dolor exercitation veniam dolore"}, "method"=>"aliquip culpa amet ullamco", "noSavingResponseBody"=>false, "numberOfPackets"=>8, "persistCookies"=>true, "port"=>99761029, "proxy"=>{"url"=>"https://example.com", "headers"=>{"ut_"=>"et quis veniam dolor", "tempor_330"=>"eiusmod cillum", "quis_c29"=>"nisi sed laboris"}}, "servername"=>"aute mollit", "service"=>"Greeter", "shouldTrackHops"=>false, "timeout"=>53514151.190503776, "url"=>"https://example.com"}, "configVariables"=>[{"description"=>"Example for the variable.", "type"=>"string"}, {"description"=>"Example for the variable.", "type"=>"string"}], "setCookie"=>"ad in nulla", "variables"=>[{"description"=>"Example for the variable.", "type"=>"string"}, {"description"=>"Example for the variable.", "type"=>"string"}]}, "locations"=>["aws:eu-west-3"], "name"=>"Example test name", "options"=>{"accept_self_signed"=>false, "allow_insecure"=>true, "checkCertificateRevocation"=>true, "ci"=>{"executionRule"=>"blocking"}, "device_ids"=>["laptop_large", "laptop_large"], "disableCors"=>false, "disableCsp"=>false, "follow_redirects"=>false, "httpVersion"=>"http2", "ignoreServerCertificateError"=>false, "initialNavigationTimeout"=>49275216, "min_failure_duration"=>-53658900, "min_location_failed"=>74932493, "monitor_name"=>"dolor amet ea in", "monitor_options"=>{"renotify_interval"=>461}, "monitor_priority"=>1, "noScreenshot"=>false, "restricted_roles"=>["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], "retry"=>{"count"=>-64526516, "interval"=>-22694341.367506072}, "rumSettings"=>{"applicationId"=>"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "clientTokenId"=>12345, "isEnabled"=>true}, "scheduling"=>{"timeframes"=>[{"day"=>1, "from"=>"07:00", "to"=>"16:00"}, {"day"=>3, "from"=>"07:00", "to"=>"16:00"}], "timezone"=>"America/New_York"}, "tick_every"=>277903}, "type"=>"browser", "message"=>"", "monitor_id"=>-88874283, "public_id"=>"es", "status"=>"live", "steps"=>[{"allowFailure"=>false, "isCritical"=>false, "name"=>"laboris laborum ad fugiat", "noScreenshot"=>false, "timeout"=>-85577994, "type"=>"assertElementContent"}, {"allowFailure"=>false, "isCritical"=>false, "name"=>"commod", "noScreenshot"=>true, "timeout"=>-44068350, "type"=>"assertElementContent"}], "tags"=>["env:prod"]}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"config":{"request":{"allow_insecure":true,"basicAuth":{"password":"PaSSw0RD!","username":"my_username","type":"web"},"body":"commodo mollit non dolor","bodyType":"text/plain","callType":"unary","certificate":{"cert":{"content":"non fugiat nostrud","filename":"incididunt proide","updatedAt":"minim id"},"key":{"content":"in voluptate","filename":"aute fugiat","updatedAt":"quis ut aliqua"}},"compressedJsonDescriptor":"laboris","dnsServer":"proident ut commodo aliqua","dnsServerPort":39827,"follow_redirects":false,"headers":{"enim_cd2":"in culpa ex"},"host":"id ipsum labore commodo nulla","message":"tempor enim ea minim aliquip","metadata":{"Duisf":"labore exer","exe":"aliquip nulla dolore","dolore_b":"minim dolor exercitation veniam dolore"},"method":"aliquip culpa amet ullamco","noSavingResponseBody":false,"numberOfPackets":8,"persistCookies":true,"port":99761029,"proxy":{"url":"https://example.com","headers":{"ut_":"et quis veniam dolor","tempor_330":"eiusmod cillum","quis_c29":"nisi sed laboris"}},"query":{},"servername":"aute mollit","service":"Greeter","shouldTrackHops":false,"timeout":53514151.190503776,"url":"https://example.com"},"configVariables":[{"description":"Example for the variable.","type":"string"},{"description":"Example for the variable.","type":"string"}],"setCookie":"ad in nulla","variables":[{"description":"Example for the variable.","type":"string"},{"description":"Example for the variable.","type":"string"}]},"locations":["aws:eu-west-3"],"name":"Example test name","options":{"accept_self_signed":false,"allow_insecure":true,"checkCertificateRevocation":true,"ci":{"executionRule":"blocking"},"device_ids":["laptop_large","laptop_large"],"disableCors":false,"disableCsp":false,"follow_redirects":false,"httpVersion":"http2","ignoreServerCertificateError":false,"initialNavigationTimeout":49275216,"min_failure_duration":-53658900,"min_location_failed":74932493,"monitor_name":"dolor amet ea in","monitor_options":{"renotify_interval":461},"monitor_priority":1,"noScreenshot":false,"restricted_roles":["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],"retry":{"count":-64526516,"interval":-22694341.367506072},"rumSettings":{"applicationId":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","clientTokenId":12345,"isEnabled":true},"scheduling":{"timeframes":[{"day":1,"from":"07:00","to":"16:00"},{"day":3,"from":"07:00","to":"16:00"}],"timezone":"America/New_York"},"tick_every":277903},"type":"browser","message":"","monitor_id":-88874283,"public_id":"es","status":"live","steps":[{"allowFailure":false,"isCritical":false,"name":"laboris laborum ad fugiat","noScreenshot":false,"params":{},"timeout":-85577994,"type":"assertElementContent"},{"allowFailure":false,"isCritical":false,"name":"commod","noScreenshot":true,"params":{},"timeout":-44068350,"type":"assertElementContent"}],"tags":["env:prod"]}