Components
Retrieving components
Returns many components.
Token-based authentication with required prefix "Token"
Comma-separated response fields to include. Available fields: id,originGroupId,name,isComponent,steps.
A page number within the paginated result set.
Number of results to return per page.
Search in names with the following query
123http://api.example.org/accounts/?page=4http://api.example.org/accounts/?page=2Authentication credentials were missing or invalid.
GET /api/v2/components/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"count": 123,
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2",
"results": [
{
"id": "text",
"originGroupId": "123e4567-e89b-12d3-a456-426614174000",
"name": null,
"isComponent": true,
"folderId": null,
"steps": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "text",
"name": null,
"blockId": null,
"groupId": null,
"originGroupId": "text",
"notes": null,
"isActive": true,
"runTimeout": null,
"sleep": null,
"waitingConditions": [
{
"type": "documentComplete",
"expected": null,
"isActive": true,
"timeout": null
}
],
"value": "text"
}
]
}
]
}Create a standalone component (not attached to any test).
Token-based authentication with required prefix "Token"
Request body failed validation.
Authentication credentials were missing or invalid.
POST /api/v2/components/ HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 29
"name=null&isActive=true"{
"id": "text",
"originGroupId": "123e4567-e89b-12d3-a456-426614174000",
"name": null,
"isComponent": true,
"folderId": null,
"steps": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "text",
"name": null,
"blockId": null,
"groupId": null,
"originGroupId": "text",
"notes": null,
"isActive": true,
"runTimeout": null,
"sleep": null,
"waitingConditions": [
{
"type": "documentComplete",
"expected": null,
"isActive": true,
"timeout": null
}
],
"value": "text"
}
]
}Returns component usage details.
Token-based authentication with required prefix "Token"
A UUID string identifying this group.
Authentication credentials were missing or invalid.
Resource not found.
GET /api/v2/components/{id}/usage/ HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
{
"usage": 1,
"testsIds": [
"123e4567-e89b-12d3-a456-426614174000"
]
}Last updated
Was this helpful?
