- Introdução a API
- Rotas
- Abastecimentos
- Multas
- Manutenção
- others
- Maintenance
- Planning Plan
- Maintenance Dashboard
- Mapa
- Ultimos Pontos (Last Points)
- lastbreakroutepoint
- Checklist
- metrics
- attachments
- custom-filters
- form-template
- forms
- checklists
- answers
create new answer
POST
https://cgv-prd-checklist-api.contele.io/send-new-answer
answers
Última modificação:2025-05-26 16:37:01
x-eov-operation-id:send_answers_handler
x-eov-operation-handler:app
x-swagger-router-controller:app
x-codegen-request-body-name:body
Requisição
Parâmetros Query
replace_answers
boolean
opcional
draft
boolean
opcional
Parâmetros Header
x-api-key
string
requerido
Padrão:
{{api_key}}
Parâmetros Bodyapplication/json
form_id
string <uuid>
opcional
form_template_id
string <uuid>
requerido
linked_urns
array[string]
opcional
answers
array[object (new_answer_list) {3}]
opcional
id
string <uuid>
opcional
form_question_id
string <uuid>
requerido
answer
string
opcional
Exemplo
{
"form_id": "46af4ef5-2c18-4098-9bc5-c048fb90b843",
"form_template_id": "5c7e6466-5d17-4998-88d1-06bf3e99d001",
"linked_urns": [
"v0:product:context:context_id"
],
"answers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"form_question_id": "ee348bf7-db46-4080-b396-2f4d8998e46c",
"answer": "string"
}
]
}
Exemplos de Requisição
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://cgv-prd-checklist-api.contele.io/send-new-answer' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
"form_id": "46af4ef5-2c18-4098-9bc5-c048fb90b843",
"form_template_id": "5c7e6466-5d17-4998-88d1-06bf3e99d001",
"linked_urns": [
"v0:product:context:context_id"
],
"answers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"form_question_id": "ee348bf7-db46-4080-b396-2f4d8998e46c",
"answer": "string"
}
]
}'
Respostas
🟢201Criado
application/json
Body
forms
array[object (new_form) {5}]
requerido
id
string <uuid>
opcional
form_template_id
string <uuid>
requerido
answers
array[object (new_answer_list) {3}]
opcional
linked_urns
array[string]
opcional
time_to_complete_checklist_in_seconds
integer | null
opcional
Exemplo
{
"forms": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"form_template_id": "5c7e6466-5d17-4998-88d1-06bf3e99d001",
"answers": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"form_question_id": "ee348bf7-db46-4080-b396-2f4d8998e46c",
"answer": "string"
}
],
"linked_urns": [
"v0:product:context:context_id"
],
"time_to_complete_checklist_in_seconds": 0
}
]
}
🟠400Pedido inválido
🟠401Não autorizado
Modificado em 2025-05-26 16:37:01