curl --request POST \
--url https://api.eddy.engineer/v1/design.assembly \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"icd_key": "<string>",
"include_bound": true,
"merge": {},
"merge_key": "<string>",
"sessions": [
{
"part": "<string>",
"session": "<string>"
}
],
"sourced": [
{
"item_id": "<string>",
"pose": {}
}
]
}
'import requests
url = "https://api.eddy.engineer/v1/design.assembly"
payload = {
"icd_key": "<string>",
"include_bound": True,
"merge": {},
"merge_key": "<string>",
"sessions": [
{
"part": "<string>",
"session": "<string>"
}
],
"sourced": [
{
"item_id": "<string>",
"pose": {}
}
]
}
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({
icd_key: '<string>',
include_bound: true,
merge: {},
merge_key: '<string>',
sessions: [{part: '<string>', session: '<string>'}],
sourced: [{item_id: '<string>', pose: {}}]
})
};
fetch('https://api.eddy.engineer/v1/design.assembly', 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/design.assembly",
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([
'icd_key' => '<string>',
'include_bound' => true,
'merge' => [
],
'merge_key' => '<string>',
'sessions' => [
[
'part' => '<string>',
'session' => '<string>'
]
],
'sourced' => [
[
'item_id' => '<string>',
'pose' => [
]
]
]
]),
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/design.assembly"
payload := strings.NewReader("{\n \"icd_key\": \"<string>\",\n \"include_bound\": true,\n \"merge\": {},\n \"merge_key\": \"<string>\",\n \"sessions\": [\n {\n \"part\": \"<string>\",\n \"session\": \"<string>\"\n }\n ],\n \"sourced\": [\n {\n \"item_id\": \"<string>\",\n \"pose\": {}\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/design.assembly")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"icd_key\": \"<string>\",\n \"include_bound\": true,\n \"merge\": {},\n \"merge_key\": \"<string>\",\n \"sessions\": [\n {\n \"part\": \"<string>\",\n \"session\": \"<string>\"\n }\n ],\n \"sourced\": [\n {\n \"item_id\": \"<string>\",\n \"pose\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/design.assembly")
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 \"icd_key\": \"<string>\",\n \"include_bound\": true,\n \"merge\": {},\n \"merge_key\": \"<string>\",\n \"sessions\": [\n {\n \"part\": \"<string>\",\n \"session\": \"<string>\"\n }\n ],\n \"sourced\": [\n {\n \"item_id\": \"<string>\",\n \"pose\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"assembly": {},
"icd_key": "<string>",
"merge_key": "<string>",
"parts": [
{}
],
"schema_version": "<string>",
"skipped": [
{}
],
"sourced": [
{}
],
"status": "<string>"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}The product as one assembly: every designed part's recipe and every sourced part's stand-in, posed (CH)
Composes a product from a design.merge result (merge, the response as returned, or merge_key, its stored document) or from {icd_key, sessions} (each session replayed to its current recipe, one session per part). Designed parts are authored in the product frame, so each stands at the identity pose under its part id — except a designed node whose pack authored poses, which stands once per pose (<part>, <part>#1, … at the merge’s poses, or from sessions exactly as design.merge stands them; one parts row per instance with instance, instances and pose); sourced parts stand at the pose the merge stood them at (from a merge: its sourced rows, the item’s imported-body recipe re-read and its hash checked; from sessions: exactly as design.merge stands them — explicit sourced poses, and with include_bound (default true) every part the ICD’s nodes are bound to at the pack’s authored poses in its node’s keep-in, else the keep-in’s centre). The assembly is the ss_cad::assembly::Assembly document (components with recipe + pose, every one fixed; no mates) that /v1/asm.rebuild, /v1/asm.render and /v1/design.packet {assembly} take. A conflicted merge is 409 MERGE_CONFLICT; a recipe that moved since the merge read it is 409 DESIGN_ASSEMBLY_STALE; a part that builds no solid and a bound part with no model or nowhere to stand are listed in skipped with the reason, never placed at the origin. Nothing is stored.
curl --request POST \
--url https://api.eddy.engineer/v1/design.assembly \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"icd_key": "<string>",
"include_bound": true,
"merge": {},
"merge_key": "<string>",
"sessions": [
{
"part": "<string>",
"session": "<string>"
}
],
"sourced": [
{
"item_id": "<string>",
"pose": {}
}
]
}
'import requests
url = "https://api.eddy.engineer/v1/design.assembly"
payload = {
"icd_key": "<string>",
"include_bound": True,
"merge": {},
"merge_key": "<string>",
"sessions": [
{
"part": "<string>",
"session": "<string>"
}
],
"sourced": [
{
"item_id": "<string>",
"pose": {}
}
]
}
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({
icd_key: '<string>',
include_bound: true,
merge: {},
merge_key: '<string>',
sessions: [{part: '<string>', session: '<string>'}],
sourced: [{item_id: '<string>', pose: {}}]
})
};
fetch('https://api.eddy.engineer/v1/design.assembly', 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/design.assembly",
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([
'icd_key' => '<string>',
'include_bound' => true,
'merge' => [
],
'merge_key' => '<string>',
'sessions' => [
[
'part' => '<string>',
'session' => '<string>'
]
],
'sourced' => [
[
'item_id' => '<string>',
'pose' => [
]
]
]
]),
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/design.assembly"
payload := strings.NewReader("{\n \"icd_key\": \"<string>\",\n \"include_bound\": true,\n \"merge\": {},\n \"merge_key\": \"<string>\",\n \"sessions\": [\n {\n \"part\": \"<string>\",\n \"session\": \"<string>\"\n }\n ],\n \"sourced\": [\n {\n \"item_id\": \"<string>\",\n \"pose\": {}\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/design.assembly")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"icd_key\": \"<string>\",\n \"include_bound\": true,\n \"merge\": {},\n \"merge_key\": \"<string>\",\n \"sessions\": [\n {\n \"part\": \"<string>\",\n \"session\": \"<string>\"\n }\n ],\n \"sourced\": [\n {\n \"item_id\": \"<string>\",\n \"pose\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/design.assembly")
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 \"icd_key\": \"<string>\",\n \"include_bound\": true,\n \"merge\": {},\n \"merge_key\": \"<string>\",\n \"sessions\": [\n {\n \"part\": \"<string>\",\n \"session\": \"<string>\"\n }\n ],\n \"sourced\": [\n {\n \"item_id\": \"<string>\",\n \"pose\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"assembly": {},
"icd_key": "<string>",
"merge_key": "<string>",
"parts": [
{}
],
"schema_version": "<string>",
"skipped": [
{}
],
"sourced": [
{}
],
"status": "<string>"
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
The assembly