GET - List of actions
List of actions
Request
- Method:
GET - Endpoint:
/check-lists/actions - Base URL:
https://api.targpatrol.com/api/v1 - Operation ID:
list-of-actions
Authorization
This endpoint requires an external API key.
x-api-key: {your_external_api_key}
Parameters
| Name | In | Required | Schema | Description |
|---|---|---|---|---|
limit | query | no | integer | include first N items of a resource collection |
offset | query | no | number | exclude first N items of a resource collection |
sort | query | no | string | sort items in a resource collection |
q | query | no | string | This parameter is used for quick search across text fields. |
name | query | no | string | filter by name |
checkListId | query | no | string | filter by check list ids |
Responses
200 OK
Content-Type: application/json
Schema: object
Schema
{
"allOf": [
{
"$ref": "#/components/schemas/PageResponse"
},
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ActionResponse"
}
}
}
}
]
}
Example: example-1
{
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "Device sounds loudly",
"type": "BOOLEAN"
}
],
"meta": {
"offset": 0,
"limit": 20,
"count": 1000,
"sort": [
{
"property": "id",
"direction": "asc"
}
]
}
}
401 Unauthorized
500 Internal Server Error
Content-Type: application/json
Schema: ErrorResponse
Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}
Example: example-1
{
"message": "internal server error",
"code": "internal.server.error",
"timestamp": "2023-03-07T05:57:59.315Z"
}