{"type":"api","title":"Bulk delete HTTP server endpoint scheduled tests","meta":{"id":"/apps/pubhub/media/000-v7-apis/4ec57f8c141f43990cef5c737bb51240bb169e79/fb944e6d-6400-3b77-a981-83f695a8f9f8","info":{"title":"Endpoint Tests API","version":"7.0.117","description":"Manage endpoint agent dynamic and scheduled tests using the Endpoint Tests API.\n"},"security":[{"BearerAuth":[]}],"tags":[{"name":"Endpoint Scheduled Tests"},{"name":"Agent to Server Endpoint Scheduled Tests"},{"name":"HTTP Server Endpoint Scheduled Tests"},{"name":"Agent To Server Endpoint Dynamic Tests"},{"name":"Endpoint Real User Tests"}],"externalDocs":{"description":"Find out more about Endpoint Agent Scheduled Tests","url":"https://docs.thousandeyes.com/product-documentation/end-user-monitoring/scheduled-tests"},"openapi":"3.0.1","servers":[{"description":"ThousandEyes API production URL","url":"https://api.thousandeyes.com/v7"}],"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Bearer authentication token"}}},"spec":{"tags":["HTTP Server Endpoint Scheduled Tests"],"summary":"Bulk delete HTTP server endpoint scheduled tests","operationId":"bulkDeleteHttpServerEndpointScheduledTests","description":"Deletes multiple HTTP server endpoint scheduled tests in one all-or-nothing operation. Missing test IDs are ignored.\n\nBefore any tests are deleted, all found tests are validated to ensure they belong to this test family and can be deleted by the caller or, for partner-owned tests, by the owning partner. If any validation check fails, no tests are deleted.\n","parameters":[{"name":"aid","in":"query","description":"A 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.","required":false,"schema":{"type":"string","example":"1234"},"$$ref":"#/components/parameters/AccountGroupId"},{"name":"testId","in":"query","required":true,"style":"form","explode":true,"description":"Endpoint test IDs to delete. Specify this parameter once for each test ID. The request must not contain more than the maximum number of tests supported by the operation. If the limit is exceeded, the `400 Bad Request` response includes the supported maximum in `maximumTestsSupported`.","schema":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string","example":"4503599627370497"},"example":["4503599627370497","4503599627370498"]},"$$ref":"#/components/parameters/EndpointTestBulkDeleteTestIds"}],"responses":{"200":{"description":"The IDs of tests successfully deleted.","content":{"application/json":{"schema":{"type":"object","required":["deletedTestIds"],"properties":{"deletedTestIds":{"type":"array","description":"IDs of tests deleted by this request. Empty when no tests were deleted.","items":{"type":"string"},"example":["281474976710706","281474976710707"]}},"$$ref":"#/components/schemas/EndpointTestBulkDeleteResult"},"example":{"deletedTestIds":["281474976710706","281474976710707"]}}},"$$ref":"#/components/responses/EndpointTestBulkDeleteSuccess"},"400":{"description":"The request is invalid. Missing test IDs are ignored. Each test that is found must belong to the endpoint test family addressed by the operation and must be deletable by the caller or owning partner. If any validation check fails, no tests are deleted. When the request exceeds the bulk-delete limit, the response includes the maximum number of tests supported by the operation.","content":{"application/problem+json":{"schema":{"allOf":[{"type":"object","allOf":[{"type":"object","properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type. When this member is not present, its value is assumed to be \"about:blank\"."},"title":{"type":"string","description":"A short, human-readable summary of the problem type."},"status":{"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem."},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem."},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem."}},"$$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errors":{"nullable":true,"type":"array","description":"(Optional) When multiple errors occur, the details for each error are listed.","items":{"type":"object","properties":{"code":{"type":"string","description":"(Optional) A unique error type/code that can be referenced in the documentation for further details."},"field":{"type":"string","description":"Identifies the field that triggered this particular error."},"message":{"type":"string","description":"A short, human-readable summary of the error."}},"$$ref":"#/components/schemas/ValidationErrorItem"}}}}],"$$ref":"#/components/schemas/ValidationError"},{"type":"object","properties":{"maximumTestsSupported":{"type":"integer","format":"int32","minimum":1,"description":"Maximum number of tests supported by the bulk delete operation. Returned when the request exceeds this limit. The example value is illustrative; the actual value is service-configured.","example":200}}}],"$$ref":"#/components/schemas/EndpointTestBulkDeleteValidationError"},"example":{"type":"about:blank","title":"Bad Request","status":400,"detail":"A maximum of 200 tests may be deleted in one request.","instance":"/v7/endpoint/tests/scheduled-tests/http-server","maximumTestsSupported":200,"errors":[{"code":"ENDPOINT_TEST_VALIDATION_FAILED","field":"testId","message":"A maximum of 200 tests may be deleted in one request."}]}}},"$$ref":"#/components/responses/EndpointTestBulkDeleteBadRequest"},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"type":"object","properties":{"error":{"type":"string","example":"invalid_token"},"error_description":{"type":"string","example":"Invalid access token"}},"$$ref":"#/components/schemas/UnauthorizedError"}}},"$$ref":"#/components/responses/401"},"403":{"description":"Insufficient permissions to query endpoint","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type. When this member is not present, its value is assumed to be \"about:blank\"."},"title":{"type":"string","description":"A short, human-readable summary of the problem type."},"status":{"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem."},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem."},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem."}},"$$ref":"#/components/schemas/Error"}}},"$$ref":"#/components/responses/403"},"429":{"description":"Exhausted rate limit for the organization","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type. When this member is not present, its value is assumed to be \"about:blank\"."},"title":{"type":"string","description":"A short, human-readable summary of the problem type."},"status":{"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem."},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem."},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem."}},"$$ref":"#/components/schemas/Error"}}},"$$ref":"#/components/responses/429"},"500":{"description":"Internal server error","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type. When this member is not present, its value is assumed to be \"about:blank\"."},"title":{"type":"string","description":"A short, human-readable summary of the problem type."},"status":{"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem."},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem."},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem."}},"$$ref":"#/components/schemas/Error"},"example":{"type":"about:blank","title":"Internal server error","status":500,"detail":"Optional detail about the internal error message.","instance":"/v7"}}},"$$ref":"#/components/responses/500"},"502":{"description":"Bad Gateway","content":{"application/problem+json":{"schema":{"type":"object","properties":{"type":{"type":"string","description":"A URI reference that identifies the problem type. When this member is not present, its value is assumed to be \"about:blank\"."},"title":{"type":"string","description":"A short, human-readable summary of the problem type."},"status":{"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem."},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence of the problem."},"instance":{"type":"string","description":"A URI reference that identifies the specific occurrence of the problem."}},"$$ref":"#/components/schemas/Error"}}},"$$ref":"#/components/responses/502"},"default":{"description":"An error occurred","$$ref":"#/components/responses/GeneralError"}},"__originalOperationId":"bulkDeleteHttpServerEndpointScheduledTests","security":[{"BearerAuth":[]}],"method":"delete","path":"/endpoint/tests/scheduled-tests/http-server"}}