Attachment

operations about attachments

Creates an attachment and asociates it to a Smart Item

Request
Request Body schema: application/json
parentId
string <uuid>

The unique identifier of the smart item

name
string
filename
string
description
string
contenttype
string
Md5Hash
string
object

System properties of the item.

object

Metadata for the item

object
object
Array of objects (fileData)
Responses
200

retuened attachment summary object

400

Invalid data, parentId, name, or content type

401

You do not have sufficient appzone api transactions to perform the action

post/attachments/create
Request samples
application/json
{
  • "parentId": "00000000-0000-0000-0000-000000000000",
  • "name": "test",
  • "filename": "fileName-100.jpg",
  • "description": "attachment description1",
  • "contenttype": "jpeg",
  • "Md5Hash": "5d41402abc4b2a76b9719d911017c592",
  • "systemProperties": { },
  • "metadata": { },
  • "metadataFields": { },
  • "sketchMarkups": { },
  • "files": [
    ]
}
Response samples
application/json
{
  • "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
  • "itemID": 982490,
  • "name": "test",
  • "description": "attachment Description-1",
  • "modifiedOn": "2019-08-24T14:15:22Z",
  • "modifiedBy": {
    }
}

Allows to update the attachment stream of an item

Request
query Parameters
id
required
string <uuid>

The unique identifier of the attachment

Example: id=00000000-0000-0000-0000-000000000000
stream
required
string <binary>

stream

Responses
200

returned an attachment summary object

400

invalidID

post/attachments/uploadcontent
Request samples
Response samples
application/json
{
  • "ID": "3892eb50-4697-4c72-aadc-32b766bce3c0",
  • "itemID": 982490,
  • "name": "test",
  • "description": "attachment Description-1",
  • "modifiedOn": "2019-08-24T14:15:22Z",
  • "modifiedBy": {
    }
}

Returns the attachment data of the id passed in

Request
path Parameters
id
required
string <uuid>

Id of the attachment

Example: 00000000-0000-0000-0000-000000000000
Responses
200

Returned attachment detail json

400

Invalid ID

get/attachments/get/{id}
Request samples
Response samples
applcation/json
{ }