Instantiate a reference architecture for a product spec (J5)
curl --request POST \
--url https://api.eddy.engineer/v1/architect.propose \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"pack": "<string>",
"proposed_by": "<string>",
"spec": {},
"overrides": [
{}
]
}
'import requests
url = "https://api.eddy.engineer/v1/architect.propose"
payload = {
"pack": "<string>",
"proposed_by": "<string>",
"spec": {},
"overrides": [{}]
}
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({pack: '<string>', proposed_by: '<string>', spec: {}, overrides: [{}]})
};
fetch('https://api.eddy.engineer/v1/architect.propose', 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/architect.propose",
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([
'pack' => '<string>',
'proposed_by' => '<string>',
'spec' => [
],
'overrides' => [
[
]
]
]),
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/architect.propose"
payload := strings.NewReader("{\n \"pack\": \"<string>\",\n \"proposed_by\": \"<string>\",\n \"spec\": {},\n \"overrides\": [\n {}\n ]\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/architect.propose")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pack\": \"<string>\",\n \"proposed_by\": \"<string>\",\n \"spec\": {},\n \"overrides\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/architect.propose")
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 \"pack\": \"<string>\",\n \"proposed_by\": \"<string>\",\n \"spec\": {},\n \"overrides\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"candidate": {},
"candidate_key": "<string>"
}PLM
Instantiate a reference architecture for a product spec (J5)
The architect agent's proposal: a pack name, the product spec {id, name, envelope_lo/hi [m], budgets (totals), market, default_material?, created_at} and overrides (remove a node, change ratios, move a keep-in, set a material or spec). The engine instantiates: allocations = ratio × parent (sibling ratios ≤ 1: RATIO_OVERRUN otherwise, so the J1 parent-sum rule holds by construction), keep-ins = fractions × the envelope, one L1 item per part, an EBOM (quantities from the pack), the standards for the market, and the packaging report (keep-ins inside the envelope; sibling overlaps only through a host relation; a hosted keep-in inside its host). The result is a CANDIDATE — stored + registered `arch_candidate`, nothing else mutated (L7 doctrine). The pack is any pack `domain.instantiate` resolves: a built-in, a registered (or SS_PACKS_DIR) name, or a `b3:` pack key; an unknown one is 400 ARCH_PACK_UNKNOWN.
POST
/
v1
/
architect.propose
Instantiate a reference architecture for a product spec (J5)
curl --request POST \
--url https://api.eddy.engineer/v1/architect.propose \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"pack": "<string>",
"proposed_by": "<string>",
"spec": {},
"overrides": [
{}
]
}
'import requests
url = "https://api.eddy.engineer/v1/architect.propose"
payload = {
"pack": "<string>",
"proposed_by": "<string>",
"spec": {},
"overrides": [{}]
}
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({pack: '<string>', proposed_by: '<string>', spec: {}, overrides: [{}]})
};
fetch('https://api.eddy.engineer/v1/architect.propose', 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/architect.propose",
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([
'pack' => '<string>',
'proposed_by' => '<string>',
'spec' => [
],
'overrides' => [
[
]
]
]),
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/architect.propose"
payload := strings.NewReader("{\n \"pack\": \"<string>\",\n \"proposed_by\": \"<string>\",\n \"spec\": {},\n \"overrides\": [\n {}\n ]\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/architect.propose")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"pack\": \"<string>\",\n \"proposed_by\": \"<string>\",\n \"spec\": {},\n \"overrides\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/architect.propose")
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 \"pack\": \"<string>\",\n \"proposed_by\": \"<string>\",\n \"spec\": {},\n \"overrides\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"candidate": {},
"candidate_key": "<string>"
}