Criar Questões de Provas
curl --request POST \
--url https://kong.api.toolzz.com.br/api/content/avaliation/new_questions \
--header 'Content-Type: application/json' \
--data '
{
"school": [
123
],
"theme": "<string>",
"group": [
123
],
"subgroup": [
123
],
"specialty": [
123
],
"questions": [
{
"support_text": "<string>",
"explanation_text": "<string>",
"tags": [
"<string>"
],
"difficulty": 123,
"question_text": "<string>",
"options": [
{
"text": "<string>",
"is_correct": true
}
]
}
]
}
'import requests
url = "https://kong.api.toolzz.com.br/api/content/avaliation/new_questions"
payload = {
"school": [123],
"theme": "<string>",
"group": [123],
"subgroup": [123],
"specialty": [123],
"questions": [
{
"support_text": "<string>",
"explanation_text": "<string>",
"tags": ["<string>"],
"difficulty": 123,
"question_text": "<string>",
"options": [
{
"text": "<string>",
"is_correct": True
}
]
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
school: [123],
theme: '<string>',
group: [123],
subgroup: [123],
specialty: [123],
questions: [
{
support_text: '<string>',
explanation_text: '<string>',
tags: ['<string>'],
difficulty: 123,
question_text: '<string>',
options: [{text: '<string>', is_correct: true}]
}
]
})
};
fetch('https://kong.api.toolzz.com.br/api/content/avaliation/new_questions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://kong.api.toolzz.com.br/api/content/avaliation/new_questions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'school' => [
123
],
'theme' => '<string>',
'group' => [
123
],
'subgroup' => [
123
],
'specialty' => [
123
],
'questions' => [
[
'support_text' => '<string>',
'explanation_text' => '<string>',
'tags' => [
'<string>'
],
'difficulty' => 123,
'question_text' => '<string>',
'options' => [
[
'text' => '<string>',
'is_correct' => true
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://kong.api.toolzz.com.br/api/content/avaliation/new_questions"
payload := strings.NewReader("{\n \"school\": [\n 123\n ],\n \"theme\": \"<string>\",\n \"group\": [\n 123\n ],\n \"subgroup\": [\n 123\n ],\n \"specialty\": [\n 123\n ],\n \"questions\": [\n {\n \"support_text\": \"<string>\",\n \"explanation_text\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"difficulty\": 123,\n \"question_text\": \"<string>\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"is_correct\": true\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://kong.api.toolzz.com.br/api/content/avaliation/new_questions")
.header("Content-Type", "application/json")
.body("{\n \"school\": [\n 123\n ],\n \"theme\": \"<string>\",\n \"group\": [\n 123\n ],\n \"subgroup\": [\n 123\n ],\n \"specialty\": [\n 123\n ],\n \"questions\": [\n {\n \"support_text\": \"<string>\",\n \"explanation_text\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"difficulty\": 123,\n \"question_text\": \"<string>\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"is_correct\": true\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://kong.api.toolzz.com.br/api/content/avaliation/new_questions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"school\": [\n 123\n ],\n \"theme\": \"<string>\",\n \"group\": [\n 123\n ],\n \"subgroup\": [\n 123\n ],\n \"specialty\": [\n 123\n ],\n \"questions\": [\n {\n \"support_text\": \"<string>\",\n \"explanation_text\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"difficulty\": 123,\n \"question_text\": \"<string>\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"is_correct\": true\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyAtividades
Criar Questões de Provas
Este endpoint permite a criação de questões para provas, recebendo os dados necessários para configurar cada questão.
POST
/
api
/
content
/
avaliation
/
new_questions
Criar Questões de Provas
curl --request POST \
--url https://kong.api.toolzz.com.br/api/content/avaliation/new_questions \
--header 'Content-Type: application/json' \
--data '
{
"school": [
123
],
"theme": "<string>",
"group": [
123
],
"subgroup": [
123
],
"specialty": [
123
],
"questions": [
{
"support_text": "<string>",
"explanation_text": "<string>",
"tags": [
"<string>"
],
"difficulty": 123,
"question_text": "<string>",
"options": [
{
"text": "<string>",
"is_correct": true
}
]
}
]
}
'import requests
url = "https://kong.api.toolzz.com.br/api/content/avaliation/new_questions"
payload = {
"school": [123],
"theme": "<string>",
"group": [123],
"subgroup": [123],
"specialty": [123],
"questions": [
{
"support_text": "<string>",
"explanation_text": "<string>",
"tags": ["<string>"],
"difficulty": 123,
"question_text": "<string>",
"options": [
{
"text": "<string>",
"is_correct": True
}
]
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
school: [123],
theme: '<string>',
group: [123],
subgroup: [123],
specialty: [123],
questions: [
{
support_text: '<string>',
explanation_text: '<string>',
tags: ['<string>'],
difficulty: 123,
question_text: '<string>',
options: [{text: '<string>', is_correct: true}]
}
]
})
};
fetch('https://kong.api.toolzz.com.br/api/content/avaliation/new_questions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://kong.api.toolzz.com.br/api/content/avaliation/new_questions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'school' => [
123
],
'theme' => '<string>',
'group' => [
123
],
'subgroup' => [
123
],
'specialty' => [
123
],
'questions' => [
[
'support_text' => '<string>',
'explanation_text' => '<string>',
'tags' => [
'<string>'
],
'difficulty' => 123,
'question_text' => '<string>',
'options' => [
[
'text' => '<string>',
'is_correct' => true
]
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://kong.api.toolzz.com.br/api/content/avaliation/new_questions"
payload := strings.NewReader("{\n \"school\": [\n 123\n ],\n \"theme\": \"<string>\",\n \"group\": [\n 123\n ],\n \"subgroup\": [\n 123\n ],\n \"specialty\": [\n 123\n ],\n \"questions\": [\n {\n \"support_text\": \"<string>\",\n \"explanation_text\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"difficulty\": 123,\n \"question_text\": \"<string>\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"is_correct\": true\n }\n ]\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://kong.api.toolzz.com.br/api/content/avaliation/new_questions")
.header("Content-Type", "application/json")
.body("{\n \"school\": [\n 123\n ],\n \"theme\": \"<string>\",\n \"group\": [\n 123\n ],\n \"subgroup\": [\n 123\n ],\n \"specialty\": [\n 123\n ],\n \"questions\": [\n {\n \"support_text\": \"<string>\",\n \"explanation_text\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"difficulty\": 123,\n \"question_text\": \"<string>\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"is_correct\": true\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://kong.api.toolzz.com.br/api/content/avaliation/new_questions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"school\": [\n 123\n ],\n \"theme\": \"<string>\",\n \"group\": [\n 123\n ],\n \"subgroup\": [\n 123\n ],\n \"specialty\": [\n 123\n ],\n \"questions\": [\n {\n \"support_text\": \"<string>\",\n \"explanation_text\": \"<string>\",\n \"tags\": [\n \"<string>\"\n ],\n \"difficulty\": 123,\n \"question_text\": \"<string>\",\n \"options\": [\n {\n \"text\": \"<string>\",\n \"is_correct\": true\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyParâmetros
number[]
required
Array de IDs das escolas onde as questões serão vinculadas.
string
ID do tema ao qual a questão será vinculada. O tema deve pertencer à mesma escola onde a questão está sendo criada.
number[]
required
Nome ou ID do grupo ao qual a questão será vinculada.
number[]
Nome ou ID do subgrupo ao qual a questão será vinculada. O subgrupo deve ter relação com o grupo informado.
number[]
Nome ou ID da especialidade à qual a questão será vinculada. A especialidade deve ter relação com o subgrupo informado.
array
required
string
Texto de apoio exibido durante a execução da prova.
string
Texto explicativo da resposta, exibido após a finalização da prova.
string[]
Lista de tags associadas à questão.
number
Nível de dificuldade da questão:
1 = Fácil
2 = Médio
3 = Difícil
string
required
Enunciado da questão.
array
Segurança
Para acessar este endpoint, é necessário enviar um token de acesso válido no cabeçalho de autorização (Authorization) da requisição.A API conta com medidas adicionais de segurança para garantir a proteção dos dados dos usuários.

