Validate an extra field value
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."
}Extra fields
Validate an extra field value
Checks a value against an extra field’s rules (non-empty, numeric for number fields, not already used for unique fields) without saving anything.
POST
/
clients
/
{company_slug}
/
validate-extra-field
/
Validate an extra field value
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."
}Authorizations
Path Parameters
Body
application/json

