Update BGP test

PUT {{baseUrl}}/tests/bgp/:testId?aid=1234&expand=alert-rule,monitor

Updates a BGP test. This method requires Account Admin permissions. The target test cannot be a live share or saved event.

Request Params

KeyDatatypeRequiredDescription
aidnumberA unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.
expandstringOptional parameter on whether or not to expand the test sub-resources. By default no expansion takes place if the query parameter is not present. To expand the monitors sub-resource, pass the ?expand=monitor query.

Request Body

{"value"=>"<Error: Could not resolve allOf schema"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;prefix&quot;:&quot;sed irure&quot;,&quot;createdBy&quot;:&quot;user@user.com&quot;,&quot;createdDate&quot;:&quot;2022-07-17T22:00:54Z&quot;,&quot;description&quot;:&quot;ThousandEyes Test&quot;,&quot;liveShare&quot;:false,&quot;modifiedBy&quot;:&quot;user@user.com&quot;,&quot;modifiedDate&quot;:&quot;2022-07-17T22:00:54Z&quot;,&quot;savedEvent&quot;:false,&quot;testId&quot;:&quot;281474976710706&quot;,&quot;testName&quot;:&quot;ThousandEyes Test&quot;,&quot;type&quot;:&quot;agent-to-server&quot;,&quot;_links&quot;:{&quot;self&quot;:{&quot;href&quot;:&quot;https://api.thousandeyes.com/v7/tests/{type}/281474976710706&quot;},&quot;testResults&quot;:[{&quot;href&quot;:&quot;https://api.thousandeyes.com/v7/test-results/281474976710706/network&quot;},{&quot;href&quot;:&quot;https://api.thousandeyes.com/v7/test-results/281474976710706/path-vis&quot;}]},&quot;labels&quot;:[{&quot;labelId&quot;:&quot;961&quot;,&quot;name&quot;:&quot;Artem label&quot;,&quot;isBuiltin&quot;:false},{&quot;labelId&quot;:&quot;961&quot;,&quot;name&quot;:&quot;Artem label&quot;,&quot;isBuiltin&quot;:false}],&quot;sharedWithAccounts&quot;:[{&quot;aid&quot;:&quot;1234&quot;,&quot;name&quot;:&quot;Account name&quot;},{&quot;aid&quot;:&quot;1234&quot;,&quot;name&quot;:&quot;Account name&quot;}],&quot;enabled&quot;:true,&quot;monitors&quot;:[{&quot;countryId&quot;:&quot;GB&quot;,&quot;monitorId&quot;:&quot;1234&quot;,&quot;ipAddress&quot;:&quot;4.69.184.193&quot;,&quot;network&quot;:&quot;Level 3 Communications, Inc. (AS 3356)&quot;,&quot;monitorType&quot;:&quot;public&quot;,&quot;monitorName&quot;:&quot;Seattle, WA&quot;},{&quot;countryId&quot;:&quot;GB&quot;,&quot;monitorId&quot;:&quot;1234&quot;,&quot;ipAddress&quot;:&quot;4.69.184.193&quot;,&quot;network&quot;:&quot;Level 3 Communications, Inc. (AS 3356)&quot;,&quot;monitorType&quot;:&quot;public&quot;,&quot;monitorName&quot;:&quot;Seattle, WA&quot;}],&quot;includeCoveredPrefixes&quot;:true,&quot;usePublicBgp&quot;:true,&quot;alertsEnabled&quot;:true,&quot;alertRules&quot;:[{&quot;ruleId&quot;:&quot;127094&quot;,&quot;ruleName&quot;:&quot;The End of the Internet&quot;,&quot;expression&quot;:&quot;((hops((hopDelay \u003e= 100 ms))))&quot;,&quot;direction&quot;:&quot;to-target&quot;,&quot;isDefault&quot;:true,&quot;alertType&quot;:&quot;http-server&quot;,&quot;minimumSources&quot;:10,&quot;minimumSourcesPct&quot;:99,&quot;roundsViolatingMode&quot;:&quot;exact&quot;,&quot;roundsViolatingOutOf&quot;:5,&quot;roundsViolatingRequired&quot;:2,&quot;sensitivityLevel&quot;:&quot;medium&quot;,&quot;severity&quot;:&quot;major&quot;},{&quot;ruleId&quot;:&quot;127094&quot;,&quot;ruleName&quot;:&quot;The End of the Internet&quot;,&quot;expression&quot;:&quot;((hops((hopDelay \u003e= 100 ms))))&quot;,&quot;direction&quot;:&quot;to-target&quot;,&quot;isDefault&quot;:true,&quot;alertType&quot;:&quot;http-server&quot;,&quot;minimumSources&quot;:10,&quot;minimumSourcesPct&quot;:99,&quot;roundsViolatingMode&quot;:&quot;exact&quot;,&quot;roundsViolatingOutOf&quot;:5,&quot;roundsViolatingRequired&quot;:2,&quot;sensitivityLevel&quot;:&quot;medium&quot;,&quot;severity&quot;:&quot;major&quot;}]}