curl --request POST \
--url https://api.eddy.engineer/v1/bim.product.confirm \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"file": "<string>",
"mapping": {},
"actor": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.product.confirm"
payload = {
"file": "<string>",
"mapping": {},
"actor": "<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({file: '<string>', mapping: {}, actor: '<string>'})
};
fetch('https://api.eddy.engineer/v1/bim.product.confirm', 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.confirm",
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([
'file' => '<string>',
'mapping' => [
],
'actor' => '<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.confirm"
payload := strings.NewReader("{\n \"file\": \"<string>\",\n \"mapping\": {},\n \"actor\": \"<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.confirm")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"<string>\",\n \"mapping\": {},\n \"actor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.product.confirm")
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 \"file\": \"<string>\",\n \"mapping\": {},\n \"actor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"confirmed": {},
"family": {},
"file": "<string>",
"key": "<string>",
"mapping": {},
"record": {},
"record_key": "<string>"
}A person confirms (or edits, then confirms) a product's mapping: the equipment record and the family it makes (MEP27)
Nothing binds without this: the actor is a person (human:<name>; a signed-in user signs as themself). A BIM worker holds the mapping to the file your organisation kept (every port of the product mapped once; every value’s from a field of the product, or entered) and to ss.mep.equipment/1 (rated values only in each quantity’s one unit, within what is physically possible), and records what the person changed from the proposal in edited. It makes the equipment record (source.kind: customer, the file’s key as its snapshot, your stated licence), stored in MEP6’s library for your organisation, and the family the product becomes (its box and a connector per port). The confirmed mapping is kept, so the same file maps the same way next time. Refusals by name: HUMAN_GATE, ACTOR_MISMATCH, PRODUCT_FILE_UNKNOWN (404), PRODUCT_MAPPING_SHAPE, PRODUCT_MAPPING_SCHEMA, PRODUCT_MAPPING_FILE, PRODUCT_UNKNOWN, PRODUCT_MAPPING_KIND, PRODUCT_MAPPING_NAME, PRODUCT_MAPPING_FIELD, PRODUCT_MAPPING_BOX, PRODUCT_MAPPING_PORT, PRODUCT_MAPPING_PORT_MISSING, PRODUCT_LICENCE and the record’s EQUIPMENT_* codes.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.product.confirm \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"file": "<string>",
"mapping": {},
"actor": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.product.confirm"
payload = {
"file": "<string>",
"mapping": {},
"actor": "<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({file: '<string>', mapping: {}, actor: '<string>'})
};
fetch('https://api.eddy.engineer/v1/bim.product.confirm', 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.confirm",
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([
'file' => '<string>',
'mapping' => [
],
'actor' => '<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.confirm"
payload := strings.NewReader("{\n \"file\": \"<string>\",\n \"mapping\": {},\n \"actor\": \"<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.confirm")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file\": \"<string>\",\n \"mapping\": {},\n \"actor\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.product.confirm")
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 \"file\": \"<string>\",\n \"mapping\": {},\n \"actor\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"confirmed": {},
"family": {},
"file": "<string>",
"key": "<string>",
"mapping": {},
"record": {},
"record_key": "<string>"
}