curl --request POST \
--url https://api.royalti.io/file/enable-auto-processing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceThreshold": 0.85,
"periodThreshold": 0.75,
"schemaThreshold": 0.85,
"requireAllThresholds": true
}
'{
"success": true,
"message": "Auto-processing enabled successfully",
"data": {
"autoProcessEnabled": true,
"sourceThreshold": 0.85,
"periodThreshold": 0.75,
"schemaThreshold": 0.85,
"requireAllThresholds": true
}
}Enable automatic processing
curl --request POST \
--url https://api.royalti.io/file/enable-auto-processing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sourceThreshold": 0.85,
"periodThreshold": 0.75,
"schemaThreshold": 0.85,
"requireAllThresholds": true
}
'{
"success": true,
"message": "Auto-processing enabled successfully",
"data": {
"autoProcessEnabled": true,
"sourceThreshold": 0.85,
"periodThreshold": 0.75,
"schemaThreshold": 0.85,
"requireAllThresholds": true
}
}const response = await fetch('https://api.royalti.io/file/enable-auto-processing', {
method: 'POST',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
"sourceThreshold": 0.85,
"periodThreshold": 0.75,
"schemaThreshold": 0.8,
"requireAllThresholds": true
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Minimum source detection confidence (0-1)
0 <= x <= 10.85
Minimum period detection confidence (0-1)
0 <= x <= 10.75
Minimum schema detection confidence (0-1)
0 <= x <= 10.8
If true, ALL thresholds must be met. If false, ANY threshold meeting requirement triggers auto-processing.