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": "e81afee5-18a2-4381-aa56-549aa63e7c39",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "1b1c2c7e-f2dc-46a4-98a9-9d4670cf0a24",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "46d93b5f-a57b-424a-85c0-2851f8589168",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "6261af00-54e7-4fa4-a5f7-ab4bf7c84175",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b1a3cd74-9a75-4c94-8587-c28a75081d25",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "67f9ff0c-702d-4aa0-9941-6df691e6fffc",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "27e0465e-ecb2-4175-8dda-a8b940c91edd",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"MeasurementValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "09936572-8d95-4a33-936b-8c394db17488",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"MeasurementValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "fa448656-0ece-4d14-aee5-d1395613b598",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-03T08:08:25.1241111-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "21c6fdca-f961-40bf-b3c6-c6ef18b3fcdd",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-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": "c0fb6778-f854-4774-b736-5232f8d13bd3",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "2e475653-5e0a-4c85-ae95-8c432c17f51d",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "9329db57-7728-4ef1-ad1e-16c3630b84d3",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "742146cd-e53b-41bb-8252-cafa00a6b1ba",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "483739eb-601e-40ef-922b-ee34fb2bf0cf",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "03a0e0a1-dcce-4931-8f66-1574cabc09b0",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "a7f23112-d067-4998-9b69-703eae10b8da",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"MeasurementValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "fcd1ed5f-4a99-437b-86bf-541e3c850268",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"MeasurementValueNeededDate": "2026-03-03T08:08:25.1241111-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "a4ea29ec-6a25-4ddd-a6ad-02bc9eb06a4d",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-03-03T08:08:25.1241111-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "5250dfc6-d76a-4f21-88a3-e558d0f4bc08",
"CreateDate": "2026-03-03T08:08:25.1241111-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-03-03T08:08:25.1241111-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}