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": "ef31e0e9-b0bd-437c-95df-ecedd61d39cb",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "6c1f666a-2d54-4455-a914-914a71f73f27",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "4ecb1473-ffdf-4d54-a4bc-29def4ac4af3",
"CreateDate": "2026-06-30T11:26:44.9082329-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-30T11:26:44.9082329-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "3c0f2f50-45bf-4473-bec5-330bd61f8cc3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "880c33cc-b673-42b6-bc64-4cc435e29ff9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "998cff55-8b3c-4cfe-bea4-f68f0e7d87cc",
"CreateDate": "2026-06-30T11:26:44.9082329-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-30T11:26:44.9082329-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "08ef94a6-e7a0-4fd6-a375-9e0abcfbfbce",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-30T11:26:44.9082329-07:00",
"MeasurementValueNeededDate": "2026-06-30T11:26:44.9082329-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "ad9e5cd6-4be1-4017-b892-1a5ea2298dca",
"CreateDate": "2026-06-30T11:26:44.9082329-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-30T11:26:44.9082329-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-06-30T11:26:44.9082329-07:00",
"MeasurementValueNeededDate": "2026-06-30T11:26:44.9082329-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "77d5eb21-534d-49cb-b0c0-42bba45369a5",
"CreateDate": "2026-06-30T11:26:44.9082329-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-30T11:26:44.9082329-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-30T11:26:44.9082329-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "85220c75-f29a-4bb7-a961-b64f58265c17",
"CreateDate": "2026-06-30T11:26:44.923848-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-30T11:26:44.923848-07: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": "9ee75d8d-c721-45d2-afd2-df8c32c1350e",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "724e6a51-d8fb-413f-9ce8-18a4792a6705",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "ee91e301-fccb-458c-971f-30fdf197ad49",
"CreateDate": "2026-06-30T11:26:44.923848-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-06-30T11:26:44.923848-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "fa6a2dbb-f581-4e65-a2ac-f7fcfd4389ba",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "d99aba63-e111-447e-9546-d17c13d27761",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "c8310112-5ea1-475f-9f12-53e3b8efc9b7",
"CreateDate": "2026-06-30T11:26:44.923848-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-30T11:26:44.923848-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "0b762adc-58d5-4cb2-ae93-770e627db913",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-06-30T11:26:44.923848-07:00",
"MeasurementValueNeededDate": "2026-06-30T11:26:44.923848-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "6c7eff85-5f1f-4081-9417-cf90f85536b9",
"CreateDate": "2026-06-30T11:26:44.923848-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-06-30T11:26:44.923848-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-06-30T11:26:44.923848-07:00",
"MeasurementValueNeededDate": "2026-06-30T11:26:44.923848-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "3b96da9b-749f-48b3-b2f8-8c50979b9203",
"CreateDate": "2026-06-30T11:26:44.923848-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-06-30T11:26:44.923848-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-06-30T11:26:44.923848-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "c0d62bfa-9f9e-4841-b429-b4b621dbebbc",
"CreateDate": "2026-06-30T11:26:44.923848-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-06-30T11:26:44.923848-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}