curl --request POST \
--url https://api.eddy.engineer/v1/bim.product.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"licence": {},
"bytes_base64": "<string>",
"name": "<string>",
"products": [
"<string>"
],
"text": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.product.import"
payload = {
"licence": {},
"bytes_base64": "<string>",
"name": "<string>",
"products": ["<string>"],
"text": "<string>"
}
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({
licence: {},
bytes_base64: '<string>',
name: '<string>',
products: ['<string>'],
text: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.product.import', 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/bim.product.import",
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([
'licence' => [
],
'bytes_base64' => '<string>',
'name' => '<string>',
'products' => [
'<string>'
],
'text' => '<string>'
]),
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/bim.product.import"
payload := strings.NewReader("{\n \"licence\": {},\n \"bytes_base64\": \"<string>\",\n \"name\": \"<string>\",\n \"products\": [\n \"<string>\"\n ],\n \"text\": \"<string>\"\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/bim.product.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"licence\": {},\n \"bytes_base64\": \"<string>\",\n \"name\": \"<string>\",\n \"products\": [\n \"<string>\"\n ],\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.product.import")
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 \"licence\": {},\n \"bytes_base64\": \"<string>\",\n \"name\": \"<string>\",\n \"products\": [\n \"<string>\"\n ],\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"confirmed": [
{}
],
"detail": [
{}
],
"file": "<string>",
"format": "<string>",
"products": [
{}
],
"refused": [
{}
],
"schema": "<string>"
}Import a customer's product file (an IFC of types with ports, or a catalogue) and propose how its ports and data map onto our schema (MEP27)
Through the BIM upload door, read by a BIM worker. format is ifc (types IFC…TYPE carrying IfcDistributionPorts, nested on the type or on an occurrence of it, with their property sets and an IfcBoundingBox), catalogue_json (ss.mep.product_catalogue/1) or catalogue_csv (its flat form: id, name, kind, any data columns with their unit in brackets, and port<N>.<attribute> columns), as docs/mep/MEP27.md defines them, or vdi3805 (a VDI 3805 sheet-4 pump record: a .vdi file, or the manufacturer’s ZIP holding one in bytes_base64; read from the records themselves, its articles’ fields kept by position for a person to map, docs/mep/MEP28.md). The file is kept to the caller’s organisation, behind a licence pin with the terms the person states in licence, and is never shared or seeded. Each product is listed; up to ten (products, else the first) come with their reading and a proposal (ss.mep.product_mapping/1): its kind, name, identity, rated values in the schema’s units, box and every port as a connector (kind, domain, flow, size, place, direction), each choice in reasons with what it was read from, why and a confidence; unmapped names what nothing holds; conflicts where the file disagrees with itself, blocking ones to settle before confirming. A product the organisation confirmed before answers its confirmed mapping in confirmed. Refusals by name: PRODUCT_FILE_EMPTY, PRODUCT_FILE_MALFORMED, PRODUCT_FILE_UNIT, PRODUCT_FILE_NO_PORTS, PRODUCT_FILE_TOO_MANY, PRODUCT_FILE_TOO_LARGE (413), PRODUCT_FORMAT, PRODUCT_VDI_SHEET, PRODUCT_ARCHIVE_MALFORMED, PRODUCT_ARCHIVE_ENTRIES, PRODUCT_ARCHIVE_PATH, PRODUCT_ARCHIVE_METHOD, PRODUCT_LICENCE_MISSING, PRODUCT_LICENCE, PRODUCT_BYTES_ALREADY_STORED (409); products without ports or with more than eight are listed in refused.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.product.import \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"licence": {},
"bytes_base64": "<string>",
"name": "<string>",
"products": [
"<string>"
],
"text": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.product.import"
payload = {
"licence": {},
"bytes_base64": "<string>",
"name": "<string>",
"products": ["<string>"],
"text": "<string>"
}
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({
licence: {},
bytes_base64: '<string>',
name: '<string>',
products: ['<string>'],
text: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.product.import', 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/bim.product.import",
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([
'licence' => [
],
'bytes_base64' => '<string>',
'name' => '<string>',
'products' => [
'<string>'
],
'text' => '<string>'
]),
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/bim.product.import"
payload := strings.NewReader("{\n \"licence\": {},\n \"bytes_base64\": \"<string>\",\n \"name\": \"<string>\",\n \"products\": [\n \"<string>\"\n ],\n \"text\": \"<string>\"\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/bim.product.import")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"licence\": {},\n \"bytes_base64\": \"<string>\",\n \"name\": \"<string>\",\n \"products\": [\n \"<string>\"\n ],\n \"text\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.product.import")
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 \"licence\": {},\n \"bytes_base64\": \"<string>\",\n \"name\": \"<string>\",\n \"products\": [\n \"<string>\"\n ],\n \"text\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"confirmed": [
{}
],
"detail": [
{}
],
"file": "<string>",
"format": "<string>",
"products": [
{}
],
"refused": [
{}
],
"schema": "<string>"
}Body
The terms the file is used under, in IG6's record: {terms, attribution?, redistribution: customer_only | forbidden | unknown, retention: perpetual | contract_term | unknown}. A customer's file and what is made of it stay with its organisation, so allowed and attribution_required are refused (PRODUCT_LICENCE).
The file as text