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": "1212ca31-c599-4327-8846-03d0d9b25d32",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "30cd1d5f-68bb-46d9-bf2b-d22caa5c48a3",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b0c19909-6bc9-4f89-bab0-af599ac61d4b",
"CreateDate": "2026-07-13T23:57:19.1715237-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-07-13T23:57:19.1715237-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "e4e35d7e-bef4-4419-85de-39a26546f32b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "bfcb2e50-063d-4e5d-9582-9d59b889112c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "1168908a-0b2e-4b62-a4ef-9e0fc75342e9",
"CreateDate": "2026-07-13T23:57:19.1715237-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-13T23:57:19.1715237-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "79785bfa-31dc-407a-9e20-20e9e38c7949",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-13T23:57:19.1715237-07:00",
"MeasurementValueNeededDate": "2026-07-13T23:57:19.1715237-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "cd0a57d1-14b9-47c1-bad1-56bb5ab52f68",
"CreateDate": "2026-07-13T23:57:19.1715237-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-13T23:57:19.1715237-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-07-13T23:57:19.1715237-07:00",
"MeasurementValueNeededDate": "2026-07-13T23:57:19.1715237-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "53b6470a-35ee-4f3b-8945-e9909a02e632",
"CreateDate": "2026-07-13T23:57:19.1715237-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-13T23:57:19.1715237-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-07-13T23:57:19.1715237-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "e7acfcf5-3cf0-4fc4-9245-fe05ee9cbb89",
"CreateDate": "2026-07-13T23:57:19.1715237-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-13T23:57:19.1715237-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": "19b1e0a8-d795-4b2d-a055-2a8dc1d3f76c",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "852bf07a-c65e-4bfe-ad65-cc33f92f5bf9",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "690042f4-3ef7-4919-b6f1-720c247875db",
"CreateDate": "2026-07-13T23:57:19.1871376-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-07-13T23:57:19.1871376-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "4953163c-4894-4451-a6fd-ba7865078a67",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "4f32c759-4de1-4c22-be95-d3d51290d0ea",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "093a25e3-a55c-4e07-a5ce-214268977300",
"CreateDate": "2026-07-13T23:57:19.1871376-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-13T23:57:19.1871376-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "5da09366-67c6-46ce-a0e4-11c8e4aa2f60",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-07-13T23:57:19.1871376-07:00",
"MeasurementValueNeededDate": "2026-07-13T23:57:19.1871376-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "dc48ec0c-e689-4bc5-a81f-8324b6ac0089",
"CreateDate": "2026-07-13T23:57:19.1871376-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-07-13T23:57:19.1871376-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-07-13T23:57:19.1871376-07:00",
"MeasurementValueNeededDate": "2026-07-13T23:57:19.1871376-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "125d51fb-0965-4956-9313-02cdba2362e0",
"CreateDate": "2026-07-13T23:57:19.1871376-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-07-13T23:57:19.1871376-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-07-13T23:57:19.1871376-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "4df92b35-0e16-4c8e-8fe1-35f1ffa15a3f",
"CreateDate": "2026-07-13T23:57:19.1871376-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-07-13T23:57:19.1871376-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}