curl --request POST \
--url https://api.eddy.engineer/v1/dfm.fix \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"apply": true,
"findings": [
1
],
"fixes": [
{}
],
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"report_key": "<string>",
"rules": [
"<string>"
],
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.fix"
payload = {
"subject": {},
"apply": True,
"findings": [1],
"fixes": [{}],
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"report_key": "<string>",
"rules": ["<string>"],
"store": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: {},
apply: true,
findings: [1],
fixes: [{}],
material: '<string>',
part: '<string>',
pmi: {},
process: '<string>',
profile: '<string>',
quantity: 123,
report_key: '<string>',
rules: ['<string>'],
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.fix', 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://api.eddy.engineer/v1/dfm.fix",
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([
'subject' => [
],
'apply' => true,
'findings' => [
1
],
'fixes' => [
[
]
],
'material' => '<string>',
'part' => '<string>',
'pmi' => [
],
'process' => '<string>',
'profile' => '<string>',
'quantity' => 123,
'report_key' => '<string>',
'rules' => [
'<string>'
],
'store' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://api.eddy.engineer/v1/dfm.fix"
payload := strings.NewReader("{\n \"subject\": {},\n \"apply\": true,\n \"findings\": [\n 1\n ],\n \"fixes\": [\n {}\n ],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"report_key\": \"<string>\",\n \"rules\": [\n \"<string>\"\n ],\n \"store\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://api.eddy.engineer/v1/dfm.fix")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"apply\": true,\n \"findings\": [\n 1\n ],\n \"fixes\": [\n {}\n ],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"report_key\": \"<string>\",\n \"rules\": [\n \"<string>\"\n ],\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.fix")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subject\": {},\n \"apply\": true,\n \"findings\": [\n 1\n ],\n \"fixes\": [\n {}\n ],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"report_key\": \"<string>\",\n \"rules\": [\n \"<string>\"\n ],\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Verified DfM fixes: each finding's edit applied to a copy, re-checked, offered only when clean (ss.dfm.fixes/1)
MF16. For each finding (all, or those findings / rules select) a generator per rule family proposes the edit that should fix it: a recipe edit (cad.edit ops: a parameter such as a hole’s diameter, a pocket’s corner fillet, a sheet’s bend radius, an annotation’s tolerance; or an added feature such as a face_edit draft or an escape hole) for recipe parts, a direct edit (a face edit draft or offset, a push-pull, an edge fillet) for imported parts, a PMI record edit for a tolerance or texture on an attached set. Every candidate is applied to a copy, the copy is checked again with the same profile, and the fix is offered only when the finding is gone and no rule gained an error; the item records the re-check (finding counts before and after, the re-check report’s key) and MF14’s cost delta when a hypothesis fits. Candidates that failed are listed as tried, not offered, with the reason; a finding with no deterministic fix (an assembly’s tool access, a thick section to core out) says why. With apply: true the offered fixes (or fixes as given) are applied and the answer adds the edited subject ({recipe, units}, or {brep_blob}: a STEP blob in millimetres) and its fresh report. Deterministic; each candidate costs a rebuild and a full check, so select findings for a quick answer.
curl --request POST \
--url https://api.eddy.engineer/v1/dfm.fix \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"subject": {},
"apply": true,
"findings": [
1
],
"fixes": [
{}
],
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"report_key": "<string>",
"rules": [
"<string>"
],
"store": true
}
'import requests
url = "https://api.eddy.engineer/v1/dfm.fix"
payload = {
"subject": {},
"apply": True,
"findings": [1],
"fixes": [{}],
"material": "<string>",
"part": "<string>",
"pmi": {},
"process": "<string>",
"profile": "<string>",
"quantity": 123,
"report_key": "<string>",
"rules": ["<string>"],
"store": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: {},
apply: true,
findings: [1],
fixes: [{}],
material: '<string>',
part: '<string>',
pmi: {},
process: '<string>',
profile: '<string>',
quantity: 123,
report_key: '<string>',
rules: ['<string>'],
store: true
})
};
fetch('https://api.eddy.engineer/v1/dfm.fix', 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://api.eddy.engineer/v1/dfm.fix",
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([
'subject' => [
],
'apply' => true,
'findings' => [
1
],
'fixes' => [
[
]
],
'material' => '<string>',
'part' => '<string>',
'pmi' => [
],
'process' => '<string>',
'profile' => '<string>',
'quantity' => 123,
'report_key' => '<string>',
'rules' => [
'<string>'
],
'store' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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://api.eddy.engineer/v1/dfm.fix"
payload := strings.NewReader("{\n \"subject\": {},\n \"apply\": true,\n \"findings\": [\n 1\n ],\n \"fixes\": [\n {}\n ],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"report_key\": \"<string>\",\n \"rules\": [\n \"<string>\"\n ],\n \"store\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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://api.eddy.engineer/v1/dfm.fix")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subject\": {},\n \"apply\": true,\n \"findings\": [\n 1\n ],\n \"fixes\": [\n {}\n ],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"report_key\": \"<string>\",\n \"rules\": [\n \"<string>\"\n ],\n \"store\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/dfm.fix")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subject\": {},\n \"apply\": true,\n \"findings\": [\n 1\n ],\n \"fixes\": [\n {}\n ],\n \"material\": \"<string>\",\n \"part\": \"<string>\",\n \"pmi\": {},\n \"process\": \"<string>\",\n \"profile\": \"<string>\",\n \"quantity\": 123,\n \"report_key\": \"<string>\",\n \"rules\": [\n \"<string>\"\n ],\n \"store\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
stored; fixes_key and fixes (ss.dfm.fixes/1: kind, subject {part, kind, key}, process, profile, report, before {findings, errors, warnings, advice}, items[] {finding, rule, severity, status (offered | not_offered | none), fix?, what?, recheck? {report, before, after, rule_before, rule_after, finding_gone, new_errors[], new_findings[], newly_pending[]}, cost_delta? {amount, currency, source, confidence}, tried[] {fix, what, reason, recheck?}, reason?}, notes[]) unless fixes was given; with apply: applied (count), subject ({recipe, units} | {brep_blob}, plus pmi when the part carries a set), report_key, report (ss.dfm.report/1 of the edited part)