Versions Compared

Key

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

Project Service

...

...

Deck of Cards
idbimCreateProject


Card
labelURL / Resource / JSON Structure
Resource: projects 

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects

Examplehttps://api-stage.bimplus.net/v2/bimplus/projects

JSON Structure

Name

Mandatory / Optional

Type

Description

idwill be ignoredstring (guid)Id of the project

name

mandatory

string

Name of the project

shortDescr

optional

string

Short description of the project

teamNamewill be ignoredstringName of the team to which the project belongs
teamSlugwill be ignoredstringSlug of the team to which the project belongs
hasWriteAccesswill be ignoredbooleanDon't use this property. This property is not deleted to support the older clients
thumbnailwill be ignoredstringDirect download link to project thumbnail

created

will be ignored

string (date)

Creation date of the project

createdBywill be ignoredJSON objectDetails of the Bimplus user who has created the project
changedwill be ignoredstring(date)Modified date of the project
changedBywill be ignoredJSON objectDetails of the Bimplus user who has created the project
addressoptionalstringAddress of the project
modelCountwill be ignoredintNumber of models in this project
memberCountwill be ignoredintNumber of members in this project
topicCountwill be ignoredintNumber of topics in this project
attachmentCountwill be ignoredintNumber of attachments in this project
sizewill be ignoredintSize of the project in bytes
sizeInMBwill be ignoredstringSize of the project in MB
disciplineswill be ignoredJSON objectDisciplines found under this project
rightswill be ignoredJSON objectThe rights the user has for this project



Card
labelHTTP Method
 POST


Card
defaulttrue
labelDescription
 Creates a new project.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json


Code Block
borderColorRed
langxml
titleJSON
{
    "name" : "Your Awesome Building",
    "shortDescr" : "Example for creating a project",
    "address" : "My address somewhere"
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created


Code Block
borderColorRed
langxml
titleJSON
{
    "name": "Your Awesome Building",
    "shortDescr": "Example for creating a project",
    "teamName": "Best Company",
    "teamSlug": "best-company",
    "hasWriteAccess" : true,
    "thumbnail": null,
    "created": "2013-06-01T10:05:00",
    "createdby" : {
        "id": "7c555899-5a5f-44d1-930e-284930678bed",
        "email" : "testuser@bimplus.net"
    },
    "changed": "2013-06-01T10:05:00",
    "changedby" : {
        "id": "7c555899-5a5f-44d1-930e-284930678bed",
        "email" : "testuser@bimplus.net"
    },
    "address" : "My address somewhere",
    "modelCount": 0,
    "memberCount": 1,
    "topicCount": 0,
    "attachmentCount": 0,
    "size": 0,
    "sizeMB": "0",
    "id": "0d2ce2cc-3588-45d6-a59a-f6b89ebed34e"
}



Anchor
createCopyProjectFromSourceProject
createCopyProjectFromSourceProject

Create copy of the source project
Deck of Cards
idbimCreateCopyProjectFromSourceProject


Card
labelUrl / Resource /Json

Resource: projects/copyfrom

URLhttps://api-stage.bimplus.net/v2/<team_slug>/projects/copyfrom

Example:https://api-stage.bimplus.net/v2/bimplus/projects/copyfrom

JSON Structure 

Name

Mandatory / Optional

Type

Description

idmandatorystring(guid)Id of the source project
teamSlugmandatorystringTeam slug of the source project (source team slug)

name

mandatory

string

Unique name of the newly created project

shortDescr

optional

string

Description of the newly created project

 


Card
labelHttpMethod

POST


Card
labelDescription

Creates new project as copy of the source project.


Card
labelRequest


Code Block
borderColorGreen
langxml
titleHeaders
Authorization: BimPlus 9c1874a62c974dcfa75e0132c423a088
Content-Type: application/json


Code Block
borderColorRed
langxml
titleJSON
{
  "id":"1eb8efe0-7611-47e7-a06d-102ec8e2fff6",
  "teamSlug":"bimplus-demo",
  "name":"Copy of the Mallorca V1",
  "shortDescr":"Description of the new copy of the Mallorca V1"
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created


Code Block
borderColorRed
langxml
titleJSON
{
    "topicCount": 0,
    "attachmentCount": 2,
    "projectAttachmentCount": 0,
    "name": "Copy of the Mallorca V1",
    "shortDescr": "Description of the new copy of the Mallorca V1",
    "hasWriteAccess": false,
    "teamSlug": null,
    "thumbnail": null,
    "created": "2014-02-13T12:39:36",
    "createdby": {
        "id": "e0837206-4bff-65d4-b79f-f3878c3567fd",
        "email": "demo@bimplus.net",
        "firstname": "bim+",
        "lastname": "a service by Allplan"
    },
    "changed": "2019-01-24T11:51:40.55",
    "changedby": {
        "id": "e0837206-4bff-65d4-b79f-f3878c3567fd",
        "email": "demo@bimplus.net",
        "firstname": "bim+",
        "lastname": "a service by Allplan"
    },
    "modelCount": 2,
    "memberCount": 1,
    "size": 32839680,
    "attachmentsSize": 0,
    "sizeMB": "31.32",
    "approvalProcess": 0,
    "id": "990d0772-8b87-479a-9ed6-b0b46a204301"
}



Anchor
getCurrentProjectList
getCurrentProjectList

...