Validar o valor de um campo adicional
curl --request POST \
--url https://app.reinvented.education/api/clients/{company_slug}/validate-extra-field/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"extra_field": "employee_code",
"value": "45821"
}
'import requests
url = "https://app.reinvented.education/api/clients/{company_slug}/validate-extra-field/"
payload = {
"extra_field": "employee_code",
"value": "45821"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({extra_field: 'employee_code', value: '45821'})
};
fetch('https://app.reinvented.education/api/clients/{company_slug}/validate-extra-field/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"is_valid": true,
"reason": "El valor es válido."
}Campos adicionais
Validar o valor de um campo adicional
Verifica um valor contra as regras de um campo adicional (não vazio, numérico para campos de número, ainda não usado para campos únicos) sem salvar nada.
POST
/
clients
/
{company_slug}
/
validate-extra-field
/
Validar o valor de um campo adicional
curl --request POST \
--url https://app.reinvented.education/api/clients/{company_slug}/validate-extra-field/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"extra_field": "employee_code",
"value": "45821"
}
'import requests
url = "https://app.reinvented.education/api/clients/{company_slug}/validate-extra-field/"
payload = {
"extra_field": "employee_code",
"value": "45821"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({extra_field: 'employee_code', value: '45821'})
};
fetch('https://app.reinvented.education/api/clients/{company_slug}/validate-extra-field/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"is_valid": true,
"reason": "El valor es válido."
}Autorizações
Parâmetros de caminho
Corpo
application/json

