Attachment Service
...
- Create the attachment
- Get attachment information
- Download the attachment
- Update the attachment
- Delete the attachment
- Filter for getting project-only attachments & attachments that belong to a particular attachment-type
- Create a new version of an attachment
- Get all the versions of an attachment
- Share the attachment
- Download a particular version
- Delete a particular version
...
- Please use the Bimplus Project Service for creating an attachment or for getting/deleting all the attachments of a project
- Please use the Bimplus Object Service for creating an attachment or for getting/deleting all the attachments of an object, issue or slide
Anchor createAttachment createAttachment
Attachment Json
Create and update of attachments is using of calls with "multipart/form-data" content or by stringapplication/json.
The body of string format
Name | Mandatory/Optional | Type | Description |
---|---|---|---|
fileName | optional | string | Name of the attachment |
imageData | mandatory | string | data for image |
The responses of GET are jsons of json in following format :
Name | Type | Description |
---|---|---|
id | guid | Attachment Id |
relatedId | guid | ID of the object/project/issue the attachment is attached to. |
name | string | Attachment name |
fileName | string | Name of the attachment's file |
type | string | Attachment's content type |
size | int | File size in bytes |
sizeMB | int | FIle size in megabytes |
createAt | string ( Date ) | Date of creation |
creator | json ( User ) | User who created the attachment |
changed | string ( Date ) | Date of last modification |
changedBy | json ( User ) | User who did the modification |
attachmentType | string | Bimplus attachment type. Default type is "Document" |
hash | string | File hash |
classification | string | Bimplus internal attachment classification. |
tag | string | Optional value, for additional marking of the attachment. |
objectIds | array of the attachment. | |
objectIds | array of guid | Obsolete. Replaced by "relatedId" |
version | int | Attachment version |
rights | json | User's right to the attachment, has following boolean properties : update, share, delete, download | release | string(bool) | True if attachment is share or false if attachment is not share
guid | Obsolete. Replaced by "relatedId" | |
version | int | Attachment version |
rights | json | User's right to the attachment, has following boolean properties : update, share, delete, download |
release | string(bool) | True if attachment is share or false if attachment is not share. |
Create the attachment
Deck of Cards | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Anchor | ||||
---|---|---|---|---|
|
...
Deck of Cards | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
...