GET - Get action by id
Get action by id
Request
- Method:
GET - Endpoint:
/check-lists/actions/{id} - Base URL:
https://api.targpatrol.com/api/v1 - Operation ID:
get-action-by-id
Authorization
This endpoint requires an external API key.
x-api-key: {your_external_api_key}
Responses
200 OK
Content-Type: application/json
Schema: ActionResponse
Schema
{
"$ref": "#/components/schemas/ActionResponse"
}
Example: example-1
{
"id": "be63c536-6cf3-4866-8970-37a956e3f403",
"name": "Device sounds loudly",
"type": "BOOLEAN"
}
400 Bad Request
Content-Type: application/json
Schema: ErrorResponse
Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}
Example: example-1
{
"message": "invalid input data",
"code": "input.data.invalid",
"timestamp": "2023-03-07T05:57:59.315Z",
"details": [
{
"message": "invalid data type",
"code": "data.type.invalid",
"identifier": "id",
"args": [
"[UUID]"
]
}
]
}
401 Unauthorized
404 Not Found
Content-Type: application/json
Schema: ErrorResponse
Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}
Example: example-1
{
"message": "resource wasn't found",
"code": "not.found",
"timestamp": "2023-03-07T05:57:59.315Z"
}
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"
}