curl --request POST \
--url https://api.eddy.engineer/v1/mep.equipment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"licence": {},
"name": "<string>",
"schema": "ss.mep.equipment/1",
"source": {},
"curves": "<array>",
"fan_curve": {},
"identity": {},
"ports": "<array>",
"rated": {}
}
'import requests
url = "https://api.eddy.engineer/v1/mep.equipment"
payload = {
"licence": {},
"name": "<string>",
"schema": "ss.mep.equipment/1",
"source": {},
"curves": "<array>",
"fan_curve": {},
"identity": {},
"ports": "<array>",
"rated": {}
}
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: {},
name: '<string>',
schema: 'ss.mep.equipment/1',
source: {},
curves: '<array>',
fan_curve: {},
identity: {},
ports: '<array>',
rated: {}
})
};
fetch('https://api.eddy.engineer/v1/mep.equipment', 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/mep.equipment",
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' => [
],
'name' => '<string>',
'schema' => 'ss.mep.equipment/1',
'source' => [
],
'curves' => '<array>',
'fan_curve' => [
],
'identity' => [
],
'ports' => '<array>',
'rated' => [
]
]),
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/mep.equipment"
payload := strings.NewReader("{\n \"licence\": {},\n \"name\": \"<string>\",\n \"schema\": \"ss.mep.equipment/1\",\n \"source\": {},\n \"curves\": \"<array>\",\n \"fan_curve\": {},\n \"identity\": {},\n \"ports\": \"<array>\",\n \"rated\": {}\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/mep.equipment")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"licence\": {},\n \"name\": \"<string>\",\n \"schema\": \"ss.mep.equipment/1\",\n \"source\": {},\n \"curves\": \"<array>\",\n \"fan_curve\": {},\n \"identity\": {},\n \"ports\": \"<array>\",\n \"rated\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mep.equipment")
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 \"name\": \"<string>\",\n \"schema\": \"ss.mep.equipment/1\",\n \"source\": {},\n \"curves\": \"<array>\",\n \"fan_curve\": {},\n \"identity\": {},\n \"ports\": \"<array>\",\n \"rated\": {}\n}"
response = http.request(request)
puts response.read_body{
"attribution": "<string>",
"findings": "<array>",
"generic": true,
"key": "<string>",
"kind": "<string>",
"licence": {},
"name": "<string>",
"origin": "<string>",
"pump_curve": {},
"record": {},
"source": {}
}Enter an equipment record by hand (MEP6)
One ss.mep.equipment/1 record whose source.kind is hand, with a licence record (refused by name without one, EQUIPMENT_LICENCE_MISSING). Units are fixed per quantity and never converted. Stored by its content key with IG6’s licence pin: a customer_only, unknown or forbidden record stays with your organisation. At most 64 KiB.
curl --request POST \
--url https://api.eddy.engineer/v1/mep.equipment \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"licence": {},
"name": "<string>",
"schema": "ss.mep.equipment/1",
"source": {},
"curves": "<array>",
"fan_curve": {},
"identity": {},
"ports": "<array>",
"rated": {}
}
'import requests
url = "https://api.eddy.engineer/v1/mep.equipment"
payload = {
"licence": {},
"name": "<string>",
"schema": "ss.mep.equipment/1",
"source": {},
"curves": "<array>",
"fan_curve": {},
"identity": {},
"ports": "<array>",
"rated": {}
}
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: {},
name: '<string>',
schema: 'ss.mep.equipment/1',
source: {},
curves: '<array>',
fan_curve: {},
identity: {},
ports: '<array>',
rated: {}
})
};
fetch('https://api.eddy.engineer/v1/mep.equipment', 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/mep.equipment",
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' => [
],
'name' => '<string>',
'schema' => 'ss.mep.equipment/1',
'source' => [
],
'curves' => '<array>',
'fan_curve' => [
],
'identity' => [
],
'ports' => '<array>',
'rated' => [
]
]),
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/mep.equipment"
payload := strings.NewReader("{\n \"licence\": {},\n \"name\": \"<string>\",\n \"schema\": \"ss.mep.equipment/1\",\n \"source\": {},\n \"curves\": \"<array>\",\n \"fan_curve\": {},\n \"identity\": {},\n \"ports\": \"<array>\",\n \"rated\": {}\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/mep.equipment")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"licence\": {},\n \"name\": \"<string>\",\n \"schema\": \"ss.mep.equipment/1\",\n \"source\": {},\n \"curves\": \"<array>\",\n \"fan_curve\": {},\n \"identity\": {},\n \"ports\": \"<array>\",\n \"rated\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/mep.equipment")
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 \"name\": \"<string>\",\n \"schema\": \"ss.mep.equipment/1\",\n \"source\": {},\n \"curves\": \"<array>\",\n \"fan_curve\": {},\n \"identity\": {},\n \"ports\": \"<array>\",\n \"rated\": {}\n}"
response = http.request(request)
puts response.read_body{
"attribution": "<string>",
"findings": "<array>",
"generic": true,
"key": "<string>",
"kind": "<string>",
"licence": {},
"name": "<string>",
"origin": "<string>",
"pump_curve": {},
"record": {},
"source": {}
}Body
HV9: a fan's pressure-flow curve as its datasheet gives it (a fan, an air handler or an air conditioner): {pressure: total | static (a fan) | external_static (a unit), speed_rev_min, density_kg_m3, pressure_pa, power_w?, efficiency?, stable_flow_m3_s? [min, max], speed_range_rev_min? [min, max]}; each series is {points: [[flow m3/s, value], ...]} (flow rising) or {coefficients: [c0, c1, ...], flow_m3_s: [min, max]} (a polynomial in the flow). Refused by name where it does not hold (EQUIPMENT_FAN_CURVE)
Response
OK