changes.mady.by.user Stanislav Slacky
Saved on Feb 11, 2016
...
URL: https://api-stage.bimplus.net/v2/content/units/<unit_id>
Example: https://api-stage.bimplus.net/v2/content/units/3b871b65-516e-4e7e-a35f-faa7501d5d0d
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088 Content-Type: application/json
Status: 200 OK
{ "unit": "kgmm", "contextUnitType": "LENGTHUNIT", "baseunits": [ { "baseunitid": "MASSUNIT"7be3452a-47f9-4fd8-bd94-ef6c967d684e", "usequence": 1, "ufactor": 0.001, "upower": 1 } ], "id": "3b871b65f99f40cf-516eda64-4e7e4c4f-a35f8434-faa7501d5d0dcb90722ba485", "name": "kilogrammm", "description": "base unit for mass" length in millimeter" }
URL: https://api-stage.bimplus.net/v2/content/units/<id>
JSON Structure:
Name
Mandatory / Optional
Type
Description
name
optional
string
Name of the unit
description
Short description of the unit
ufactor
int
See Create Unit
{ "name": "MyDerivedUnit updated", "description": "Example of derived unit", "symbol": "Sym", "baseunits" : [ { "baseunitid": "updated description"3b871b65-516e-4e7e-a35f-faa7501d5d0d", "usequence": 1, "ufactor": 2, "upower": 3 } ] }
{ "id": "9c75f2e7-bf66-4274-96a6-fb61ecb0e21a", "unitname": "kgMyDerivedUnit updated", "description": "Example of derived "contextUnitTypeunit", "symbol": "MASSUNITSym", "baseunits" : [ { "id "baseunitid": "3b871b65-516e-4e7e-a35f-faa7501d5d0d", "name": "kilogram", "usequence": 1, "ufactor": 2, "descriptionupower": "updated description" 3 } ] }