Method: Dogapi::V1::SyntheticsService#update_synthetics_test
- Defined in:
- lib/dogapi/v1/synthetics.rb
#update_synthetics_test(test_id, type, config, options = {}) ⇒ Object
Edit a synthetics test: PUT /v1/synthetics/tests/<SYNTHETICS_TEST_PUBLIC_ID>
23 24 25 26 27 28 29 30 |
# File 'lib/dogapi/v1/synthetics.rb', line 23 def update_synthetics_test(test_id, type, config, = {}) body = { 'type' => type, 'config' => config }.merge() request(Net::HTTP::Put, "/api/#{API_VERSION}/synthetics/tests/#{test_id}", nil, body, true) end |