AgentsAgentidTests

List tests attached to an agent. Returns thin AgentTest links (Id, AgentId, TestId, CreatedAt); the client fetches the test details separately via M:AspNetBackend.API.Controllers.TestsController.GetTests(System.Nullable{AspNetBackend.Domain.Enums.TestType}) or M:AspNetBackend.API.Controllers.TestsController.GetTest(System.Guid).

GET
/agents/{agentId}/tests
AuthorizationBearer <token>

JWT Authorization header using Bearer scheme

In: header

Path Parameters

agentId*string
Formatuuid

Response Body

application/json

curl -X GET "https://api.speaknode.com/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/tests"
{
  "agent_tests": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978",
      "test_id": "22e96a18-23fe-4c06-8ee6-180390ceaded",
      "created_at": "2019-08-24T14:15:22Z"
    }
  ]
}