POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
Attachment| Name | Description | Type | Additional information |
|---|---|---|---|
| AttachmentId | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| Description | string |
None. |
|
| AttachmentCategory | AttachmentCategory |
None. |
|
| Asset | Asset |
None. |
|
| FileType | string |
None. |
|
| FileSize | integer |
None. |
|
| UploadDate | date |
None. |
|
| Content | Collection of byte |
None. |
|
| SourceSystemId | string |
None. |
|
| CompanyId | globally unique identifier |
None. |
|
| CreateDate | date |
None. |
|
| CreateUser | string |
None. |
|
| LastModifiedDate | date |
None. |
|
| LastModifiedUser | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AttachmentId": "d9cbbe00-7df4-4cdb-a6a9-af7fee4b274d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "96e9911c-1420-4260-9d40-ad1c91921663",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "8c1dcc45-e338-4175-a5aa-5e8f1d271c39",
"CreateDate": "2025-12-21T04:49:31.4191378-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-21T04:49:31.4191378-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "9c6fb8d9-36df-4849-868d-6430c000d5f3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "ad8dc6bb-051d-4300-a579-51afc6c4c98b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f8ea62f4-7a64-47d3-9ba7-981e03ef231c",
"CreateDate": "2025-12-21T04:49:31.4191378-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-21T04:49:31.4191378-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "ba687c02-602d-4367-8b8d-618a7e0f98a7",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-21T04:49:31.4191378-08:00",
"MeasurementValueNeededDate": "2025-12-21T04:49:31.4191378-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "afba2c39-bf41-48c4-876f-d878267f49b0",
"CreateDate": "2025-12-21T04:49:31.4191378-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-21T04:49:31.4191378-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-21T04:49:31.4191378-08:00",
"MeasurementValueNeededDate": "2025-12-21T04:49:31.4191378-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "ffd7a011-9074-40e7-8871-1de6fa4e07f0",
"CreateDate": "2025-12-21T04:49:31.4191378-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-21T04:49:31.4191378-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-21T04:49:31.4191378-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "3b9a3a60-1b0b-4dc7-90f7-2b8cfc5a4508",
"CreateDate": "2025-12-21T04:49:31.4347108-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-21T04:49:31.4347108-08:00",
"LastModifiedUser": "sample string 7"
}
Response Information
Resource Description
On success, the created attachment. The Content of the attachment will not be filled in.
| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Attachment |
None. |
|
| Total | integer |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"AttachmentId": "c3ba33b0-88c2-4c8a-9369-56295bf816a7",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5107bcb0-93c4-4317-9bd8-0cb112a9b20a",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "222b0cac-d8d0-4fc9-ac12-fe06cd447388",
"CreateDate": "2025-12-21T04:49:31.4347108-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-21T04:49:31.4347108-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "1fe27473-05a3-4817-b7cb-bf4a960c904d",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "21ab70e9-c1c2-4717-80ad-074a63583dbe",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "f2677682-f0e0-44dc-8b83-114774c90e82",
"CreateDate": "2025-12-21T04:49:31.4347108-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-21T04:49:31.4347108-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "836ac428-95de-4c91-9424-c67dfc579482",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-21T04:49:31.4347108-08:00",
"MeasurementValueNeededDate": "2025-12-21T04:49:31.4347108-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "39c196d0-2b4b-4077-9e1e-c1e4fde26e4f",
"CreateDate": "2025-12-21T04:49:31.4347108-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-21T04:49:31.4347108-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-21T04:49:31.4347108-08:00",
"MeasurementValueNeededDate": "2025-12-21T04:49:31.4347108-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "249513ec-667b-4e94-b9bd-45fd771ce394",
"CreateDate": "2025-12-21T04:49:31.4347108-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-21T04:49:31.4347108-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-21T04:49:31.4347108-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "7b907c56-4e2d-4296-a21b-f956623333f1",
"CreateDate": "2025-12-21T04:49:31.4347108-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-21T04:49:31.4347108-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}