Create API instant test

POST {{baseUrl}}/tests/api/instant?aid=1234&expand=agent

Creates and runs a new API instant test.

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.
expandstring(Optional) Indicates if the test sub-resources should be expanded. Defaults to no expansion. To expand the agents sub-resource, use the query ?expand=agent.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;requests&quot;:[{&quot;name&quot;:&quot;Step 1&quot;,&quot;url&quot;:&quot;https://api.thousandeyes.com/v7/status&quot;,&quot;assertions&quot;:[{&quot;name&quot;:&quot;status-code&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;200&quot;},{&quot;name&quot;:&quot;status-code&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;200&quot;}],&quot;authType&quot;:&quot;none&quot;,&quot;body&quot;:&quot;id aliqua ut&quot;,&quot;collectApiResponse&quot;:true,&quot;headers&quot;:[{&quot;key&quot;:&quot;x-custom-header&quot;,&quot;value&quot;:&quot;keep-alive&quot;},{&quot;key&quot;:&quot;x-custom-header&quot;,&quot;value&quot;:&quot;keep-alive&quot;}],&quot;method&quot;:&quot;get&quot;,&quot;username&quot;:&quot;ThousandEyesUserName&quot;,&quot;variables&quot;:[{&quot;name&quot;:&quot;myTestName&quot;,&quot;value&quot;:&quot;tests[0].name&quot;},{&quot;name&quot;:&quot;myTestName&quot;,&quot;value&quot;:&quot;tests[0].name&quot;}],&quot;waitTimeMs&quot;:0},{&quot;name&quot;:&quot;Step 1&quot;,&quot;url&quot;:&quot;https://api.thousandeyes.com/v7/status&quot;,&quot;assertions&quot;:[{&quot;name&quot;:&quot;status-code&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;200&quot;},{&quot;name&quot;:&quot;status-code&quot;,&quot;operator&quot;:&quot;is&quot;,&quot;value&quot;:&quot;200&quot;}],&quot;authType&quot;:&quot;none&quot;,&quot;body&quot;:&quot;eu magna&quot;,&quot;collectApiResponse&quot;:true,&quot;headers&quot;:[{&quot;key&quot;:&quot;x-custom-header&quot;,&quot;value&quot;:&quot;keep-alive&quot;},{&quot;key&quot;:&quot;x-custom-header&quot;,&quot;value&quot;:&quot;keep-alive&quot;}],&quot;method&quot;:&quot;get&quot;,&quot;username&quot;:&quot;ThousandEyesUserName&quot;,&quot;variables&quot;:[{&quot;name&quot;:&quot;myTestName&quot;,&quot;value&quot;:&quot;tests[0].name&quot;},{&quot;name&quot;:&quot;myTestName&quot;,&quot;value&quot;:&quot;tests[0].name&quot;}],&quot;waitTimeMs&quot;:0}],&quot;url&quot;:&quot;www.thousandeyes.com&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;:true,&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;followRedirects&quot;:true,&quot;mtuMeasurements&quot;:false,&quot;networkMeasurements&quot;:true,&quot;numPathTraces&quot;:3,&quot;pathTraceMode&quot;:&quot;classic&quot;,&quot;predefinedVariables&quot;:[{&quot;name&quot;:&quot;myUsername&quot;,&quot;value&quot;:&quot;ThousandEyesAccountUserName&quot;},{&quot;name&quot;:&quot;myUsername&quot;,&quot;value&quot;:&quot;ThousandEyesAccountUserName&quot;}],&quot;probeMode&quot;:&quot;auto&quot;,&quot;protocol&quot;:&quot;tcp&quot;,&quot;sslVersionId&quot;:&quot;0&quot;,&quot;targetTime&quot;:1,&quot;timeLimit&quot;:30,&quot;credentials&quot;:[&quot;3247&quot;,&quot;1051&quot;],&quot;agents&quot;:[{&quot;agentType&quot;:&quot;enterprise-cluster&quot;,&quot;ipAddresses&quot;:[&quot;99.139.65.220&quot;,&quot;9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce&quot;],&quot;publicIpAddresses&quot;:[&quot;192.168.1.78&quot;,&quot;f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c&quot;],&quot;network&quot;:&quot;AT\u0026T Services, Inc. (AS 7018)&quot;,&quot;agentId&quot;:&quot;281474976710706&quot;,&quot;agentName&quot;:&quot;thousandeyes-stg-va-254&quot;,&quot;location&quot;:&quot;San Francisco Bay Area&quot;,&quot;countryId&quot;:&quot;US&quot;,&quot;enabled&quot;:true,&quot;prefix&quot;:&quot;99.128.0.0/11&quot;,&quot;verifySslCertificates&quot;:true},{&quot;agentType&quot;:&quot;enterprise-cluster&quot;,&quot;ipAddresses&quot;:[&quot;99.139.65.220&quot;,&quot;9bbd:8a0a:a257:5876:288b:6cb2:3f36:64ce&quot;],&quot;publicIpAddresses&quot;:[&quot;192.168.1.78&quot;,&quot;f9b2:3a21:f25c:d300:03f4:586d:f8d6:4e1c&quot;],&quot;network&quot;:&quot;AT\u0026T Services, Inc. (AS 7018)&quot;,&quot;agentId&quot;:&quot;281474976710706&quot;,&quot;agentName&quot;:&quot;thousandeyes-stg-va-254&quot;,&quot;location&quot;:&quot;San Francisco Bay Area&quot;,&quot;countryId&quot;:&quot;US&quot;,&quot;enabled&quot;:true,&quot;prefix&quot;:&quot;99.128.0.0/11&quot;,&quot;verifySslCertificates&quot;:true}]}