POST - Batch copy check list
Batch copy check list
Request
- Method:
POST - Endpoint:
/check-lists/batch/copy - Base URL:
https://api.targpatrol.com/api/v1 - Operation ID:
batch-copy-check-list
Authorization
This endpoint requires an external API key.
x-api-key: {your_external_api_key}
Request Body
Required: no
Content-Type: application/json
Schema: array
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uuid"
}
}
Example: example-1
[
"ec946270-545c-4e51-ac5d-a6980dbd1575",
"261be68e-df86-4705-ac33-ba318996f155"
]
Responses
200 OK
Content-Type: application/json
Schema: Array<CheckListResponse>
Schema
{
"type": "array",
"items": {
"$ref": "#/components/schemas/CheckListResponse"
}
}
Example: example-1
{
"id": "2e04ee59-c0af-4621-adea-f854d4b8572b",
"name": "Kitchen list 1 - Copy",
"actionIds": [
"1cea9223-e7d4-4b12-becc-9482afd7999d",
"ed13f992-7de6-4f0d-b77f-baa47ae00ec9"
],
"tags": [
"kitchen"
]
}
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"
}
401 Unauthorized
406 Not Acceptable
Content-Type: application/json
Schema: ErrorResponse
Schema
{
"$ref": "#/components/schemas/ErrorResponse"
}
Example: example-1
{
"message": "mismatch in the types of content",
"code": "not.acceptable",
"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"
}