Versions Compared

Key

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

...

Create and update of attachments is using of calls with "multipart/form-data" content or by stringapplication/json.

The body of string format 

...

Deck of Cards
idbimcreateAttachment


Card
defaulttrue
labelURL / Resource / JSON Structure
Resource: objects/<objects_id>/attachments

URLhttps://api-stage.bimplus.net/v2/<team_slug>/objects/<objects_id>/attachments

Examplehttps://api-stage.bimplus.net/v2/bimplus/objects/c411c33-8547-6587-eaf8-1a3a822def5/attachments


Card
labelHTTP Method
 POST


Card
labelDescription

Create of attachments is using of calls with "multipart/form-data" content or by stringapplication/json.


Card
labelRequest


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


Code Block
borderColorRed
langxml
titleJSON
{
  "fileName": "imageName",
  "imageData": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABwCAYAAAC3tFqQAAAAAXNSR0IArs4c6QAAB4ZJREFUeF7tnVtsFFUcxs8/Jvo
				CDzwR2hSFLd1CywMgT1Rf1EQTDb4oKJIYjRQEIyZICQoxgAYDeE20BTVqRFBAjbSaCBQVjQqWS/Y6uzvb7YXeC4it9l5ztgFb6G...
}



Card
labelResponse


Code Block
borderColorGreen
langxml
titleStatus
Status: 201 Created

The response format is application/octet-stream.


...