Crear elemento de lista de verificación
Crear elemento de lista de verificación. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
POST
/ChecklistItemCrear elemento de lista de verificación. Vea los parámetros definidos por OpenAPI, el cuerpo de solicitud y las respuestas a continuación.
Descripción de OpenAPI: Este endpoint crea un nuevo elemento de lista de verificación con los datos proporcionados.
Autenticación
Se requiere autenticación. Envía tu clave de API de usuario en la cabecera X-API-Key.
Parámetros
Esta operación no tiene parámetros de ruta, consulta o encabezado.
Órgano solicitante
Tipo de contenido: application/json · Schema: ChecklistItemDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
name | string | No | — | nullable |
enable | boolean | No | — | — |
prompt | string | No | — | nullable |
maxScore | integer · int32 | No | — | — |
highImportance | boolean | No | — | — |
setScoreToZero | boolean | No | — | — |
checklistGroupId | integer · int32 | No | — | — |
integrationId | string | No | — | nullable |
checklistId | integer · int32 | No | — | — |
checklistItemGroupId | integer · int32 | No | — | — |
checklistItemScriptId | integer · int32 | No | — | — |
canDelete | boolean | No | — | — |
Ejemplo de solicitud
curl --request POST \
--url 'https://api.zild.ai/ChecklistItem' \
--header 'X-API-Key: YOUR_USER_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"name": "string",
"enable": true,
"prompt": "string",
"maxScore": 0,
"highImportance": true,
"setScoreToZero": true,
"checklistGroupId": 0,
"integrationId": "string",
"checklistId": 0,
"checklistItemGroupId": 0,
"checklistItemScriptId": 0,
"canDelete": true
}'
Respuestas
| Estado | Descripción | Cuerpo de respuesta |
|---|---|---|
200 | Elemento creado correctamente | application/json · ChecklistItemDto |
Respuesta de ejemplo (200):
{
"id": 0,
"name": "string",
"enable": true,
"prompt": "string",
"maxScore": 0,
"highImportance": true,
"setScoreToZero": true,
"checklistGroupId": 0,
"integrationId": "string",
"checklistId": 0,
"checklistItemGroupId": 0,
"checklistItemScriptId": 0,
"canDelete": true
}
Modelos de datos
ChecklistItemDto
| Propiedad | Tipo | Obligatorio | Descripción | Constraints |
|---|---|---|---|---|
id | integer · int32 | No | — | — |
name | string | No | — | nullable |
enable | boolean | No | — | — |
prompt | string | No | — | nullable |
maxScore | integer · int32 | No | — | — |
highImportance | boolean | No | — | — |
setScoreToZero | boolean | No | — | — |
checklistGroupId | integer · int32 | No | — | — |
integrationId | string | No | — | nullable |
checklistId | integer · int32 | No | — | — |
checklistItemGroupId | integer · int32 | No | — | — |
checklistItemScriptId | integer · int32 | No | — | — |
canDelete | boolean | No | — | — |