Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Structure Service

...

A hierarchical tree structure(eg: cost structure) could be added and later retrieved from a project/object using the Structure service

...

Deck of Cards
idbimCopyVariant
Card
labelUrl / Resource /Json

Resource: structures/<structureprojects/<project_id>/variants/<targetvariant_id>/copycopyfrom

URLhttps://api-stage.bimplus.net/v2/<team_slug>projects/structures/<structure<project_id>/variants/<targetvariant_id>/copycopyfrom

Example:https://api-stage.bimplus.net/v2/bimplus/structures/35b986c2-e9cd-482e-9281-6000671a49f0/copy /projects/622272da-f1ff-45ab-a3f0-c8f1255c80e8/variants/733e429a-e232-4e5d-a41e-9bd50aa9763c/copyfrom

JSON Structure 

 

Name

Mandatory / Optional

Type

Description

 

 

 

 

namemandatory

will be ignored

string

Name of the new structurevariant 

description

will be ignored

 

 

typeoptionalstringType of the new structure (eg: costStructure, specificationStructure)
nrwill be ignoredintegerThe index of the new structure
coloroptionalintegerColor of the new structure
string

Description of the variant

idmandatoryidwill be ignoredstring(guid)Unique guid of the structuresource variantstartDate

 

optionalstring (date)Start date ( depends on type of structure )
endDateoptionalstring (date)End date ( depends on type of structure )
Card
labelHttpMethod

PUT

Card
labelDescription

Updates the specified target variant with all structure element's assignments of elements from source variant.

Note:
In case when at least one element is already assigned in target variant and the same element is also present in source variant,
such api call will return Conflict response and nothing will be updated. 

Card
labelHttpMethodRequest
Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json
Code Block
borderColorRed
langxml
titleJSON
{
    "name": "ignored variant name",
    "description": "ignored variant description of variant",
    "id": "f2cf9b21-c1bb-463d-bbee-a6fbfb5e8b3e"
}
Card
labelResponse
Code Block
borderColorGreen
langxml
titleStatus
Status: 200 OK
Code Block
borderColorRed
langxml
titleJSON
{
    "name": "Updated TestVariant4 name",
    "description": "Updated description of the TestVariant4",
    "id": "733e429a-e232-4e5d-a41e-9bd50aa9763c"
}
POST