Does an issued bill of materials tie to the model at its head? (MEP34)
curl --request POST \
--url https://api.eddy.engineer/v1/bim.documents.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"issue": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.documents.check"
payload = { "issue": "<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({issue: '<string>'})
};
fetch('https://api.eddy.engineer/v1/bim.documents.check', 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.documents.check",
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([
'issue' => '<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.documents.check"
payload := strings.NewReader("{\n \"issue\": \"<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.documents.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"issue\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.documents.check")
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 \"issue\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"bom": "<string>",
"head": "<string>",
"head_moved": {},
"issue": "<string>",
"item": "<string>",
"lines": 123,
"mismatches": [
{}
],
"since_issue": {},
"tied": true
}Bim
Does an issued bill of materials tie to the model at its head? (MEP34)
The issue’s snapshot and EBOM read here; a BIM worker reads the document at the issue’s head again and compares every bill line (identity, quantity, unit, elements by id and GUID) and every EBOM line (find number, child, quantity, unit), and checks the issue’s item is released pinning this issue. Tied: 200 {tied: true}; with the project’s head moved since, head_moved and since_issue (what the bill would change at the new head). Any difference: 409 DOCUMENTS_BOM_MISMATCH, naming each line by find number and what differs (quantity, unit, elements, missing_in_model, not_on_bill, missing_in_plm, extra_in_plm, child).
POST
/
v1
/
bim.documents.check
Does an issued bill of materials tie to the model at its head? (MEP34)
curl --request POST \
--url https://api.eddy.engineer/v1/bim.documents.check \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"issue": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.documents.check"
payload = { "issue": "<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({issue: '<string>'})
};
fetch('https://api.eddy.engineer/v1/bim.documents.check', 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.documents.check",
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([
'issue' => '<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.documents.check"
payload := strings.NewReader("{\n \"issue\": \"<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.documents.check")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"issue\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.documents.check")
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 \"issue\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"bom": "<string>",
"head": "<string>",
"head_moved": {},
"issue": "<string>",
"item": "<string>",
"lines": 123,
"mismatches": [
{}
],
"since_issue": {},
"tied": true
}