Importar avaliação de checklist na API v2 do SULTS
Registra na plataforma uma avaliação de checklist com a data agendada, as datas de início e de envio, o check-in, o check-out e as respostas informados no corpo. O questionário (templateId), as questões (templateQuestionId) e as opções (answerTemplateOptionId) vêm dos endpoints de listagem de questionários e de questões do questionário. Nas questões de opções, a resposta vai em answerTemplateOptionId; nas demais, em answerText, como texto, número ou data. Para anexar arquivos a uma resposta, envie cada arquivo antes em POST /api/v2/attachment/upload e informe as chaves recebidas em attachments, como explica Upload de arquivos. A avaliação importada fica concluída (CLOSED). A resposta traz o código da avaliação criada.
curl --request POST \
--url https://api.sults.com.br/api/v2/checklist/assessment/import/add \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}'import requests
url = "https://api.sults.com.br/api/v2/checklist/assessment/import/add"
payload = {
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": False,
"scoreZeroed": False,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json",
}
resposta = requests.post(url, json=payload, headers=headers)
print(resposta.status_code)
print(resposta.text)const resposta = await fetch("https://api.sults.com.br/api/v2/checklist/assessment/import/add", {
method: "POST",
headers: {
Authorization: "<api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}),
});
console.log(resposta.status, await resposta.text());<?php
$corpo = <<<'JSON'
{
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}
JSON;
$ch = curl_init("https://api.sults.com.br/api/v2/checklist/assessment/import/add");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: <api-key>",
"Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $corpo);
$resposta = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . PHP_EOL . $resposta . PHP_EOL;using System.Net.Http;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "<api-key>");
var corpo = """
{
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}
""";
var resposta = await http.PostAsync(
"https://api.sults.com.br/api/v2/checklist/assessment/import/add",
new StringContent(corpo, Encoding.UTF8, "application/json"));
Console.WriteLine((int)resposta.StatusCode);
Console.WriteLine(await resposta.Content.ReadAsStringAsync());{
"id": 1411
}{
"error": "The 'templateId' field cannot be null or empty.",
"dateTime": "2026-11-03T14:20:00Z"
}{
"error": "Acesso não autorizado."
}{
"error": "Unauthorized",
"dateTime": "2026-11-03T14:20:00Z"
}{
"error": "'assessmentId' is required.",
"dateTime": "2026-11-03T14:20:00Z"
}<string>{
"error": "Internal Server Error",
"dateTime": "2026-11-03T14:20:00Z"
}Authorizations
Body
Dados da avaliação a importar.
Was this page helpful?
curl --request POST \
--url https://api.sults.com.br/api/v2/checklist/assessment/import/add \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}'import requests
url = "https://api.sults.com.br/api/v2/checklist/assessment/import/add"
payload = {
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": False,
"scoreZeroed": False,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": False,
"scoreZeroed": False,
"attachments": []
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json",
}
resposta = requests.post(url, json=payload, headers=headers)
print(resposta.status_code)
print(resposta.text)const resposta = await fetch("https://api.sults.com.br/api/v2/checklist/assessment/import/add", {
method: "POST",
headers: {
Authorization: "<api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}),
});
console.log(resposta.status, await resposta.text());<?php
$corpo = <<<'JSON'
{
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}
JSON;
$ch = curl_init("https://api.sults.com.br/api/v2/checklist/assessment/import/add");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: <api-key>",
"Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $corpo);
$resposta = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
echo $status . PHP_EOL . $resposta . PHP_EOL;using System.Net.Http;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Add("Authorization", "<api-key>");
var corpo = """
{
"templateId": 59,
"companyId": 138,
"createdByUserId": 108,
"assigneeUserId": 108,
"startedAt": "2026-10-22T13:00:00Z",
"submittedAt": "2026-10-23T14:00:00Z",
"scheduledDate": "2026-10-10T23:59:59Z",
"checkIn": {
"checkedInAt": "2026-10-22T12:55:00Z",
"comment": "Chegada na unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 12.5,
"capturedAt": "2026-10-22T12:54:00Z"
}
},
"checkOut": {
"checkedOutAt": "2026-10-23T11:45:00Z",
"comment": "Saída da unidade",
"geolocation": {
"latitude": -23.55052,
"longitude": -46.633308,
"accuracy": 10,
"capturedAt": "2026-10-23T11:45:00Z"
}
},
"answer": [
{
"templateQuestionId": 1254,
"answerText": 36,
"comment": "Temperatura medida às 13h",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1255,
"answerText": "Fachada limpa e iluminada.\nLetreiro com uma lâmpada queimada.",
"comment": "Sem observações",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1256,
"answerText": "Equipe completa no turno da tarde",
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1257,
"answerText": 1,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1258,
"answerTemplateOptionId": [
2600
],
"comment": "Fotos da fachada anexadas",
"notApplicable": false,
"scoreZeroed": false,
"attachments": [
"3f9a6c2e-8b41-4d7a-9e0f-2a5b7c1d9e33",
"54e12530-0d99-4292-b849-088692932f70"
]
},
{
"templateQuestionId": 1259,
"answerTemplateOptionId": [
2602
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1260,
"answerTemplateOptionId": [
2604
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1261,
"answerTemplateOptionId": [
2609
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1264,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1265,
"answerText": 9,
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1266,
"answerText": "2026-12-31",
"comment": "Validade do alvará",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1267,
"answerText": 3350.25,
"comment": "Faturamento do dia",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1268,
"answerTemplateOptionId": [
2618
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
},
{
"templateQuestionId": 1272,
"answerTemplateOptionId": [
2624,
2625
],
"comment": "Ok",
"notApplicable": false,
"scoreZeroed": false,
"attachments": []
}
]
}
""";
var resposta = await http.PostAsync(
"https://api.sults.com.br/api/v2/checklist/assessment/import/add",
new StringContent(corpo, Encoding.UTF8, "application/json"));
Console.WriteLine((int)resposta.StatusCode);
Console.WriteLine(await resposta.Content.ReadAsStringAsync());{
"id": 1411
}{
"error": "The 'templateId' field cannot be null or empty.",
"dateTime": "2026-11-03T14:20:00Z"
}{
"error": "Acesso não autorizado."
}{
"error": "Unauthorized",
"dateTime": "2026-11-03T14:20:00Z"
}{
"error": "'assessmentId' is required.",
"dateTime": "2026-11-03T14:20:00Z"
}<string>{
"error": "Internal Server Error",
"dateTime": "2026-11-03T14:20:00Z"
}