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": "93aa11f3-4b05-4ee6-9a44-98665cc1e641",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "adfc3aa5-2b29-4991-a1cd-caac03b47629",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "c8a01dae-932e-40a9-969f-786cd3800227",
"CreateDate": "2025-12-16T01:12:46.7578419-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-16T01:12:46.7578419-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "de5f32e4-3f52-4af4-8eda-8f11258fc04f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "4dc9db9b-3037-4ad5-acae-73ab6268a7e3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "e2a67152-d98e-4d3b-9d18-a40ecb893b78",
"CreateDate": "2025-12-16T01:12:46.7578419-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-16T01:12:46.7578419-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "f93923db-c3df-41ac-a870-492c77b95f63",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-16T01:12:46.7578419-08:00",
"MeasurementValueNeededDate": "2025-12-16T01:12:46.7578419-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "a8f5098c-5ac4-46c3-9c33-0a22be6ab0eb",
"CreateDate": "2025-12-16T01:12:46.7578419-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-16T01:12:46.7578419-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-16T01:12:46.7578419-08:00",
"MeasurementValueNeededDate": "2025-12-16T01:12:46.7578419-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "8ee01c21-9d84-4f6c-a431-5067abfa8453",
"CreateDate": "2025-12-16T01:12:46.7578419-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-16T01:12:46.7578419-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-16T01:12:46.7578419-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "91bf2d9e-60e7-4079-b811-c55de39ab65f",
"CreateDate": "2025-12-16T01:12:46.7578419-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-16T01:12:46.7578419-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": "9b40d94e-177a-429f-bc03-e12f937834ca",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "edeb2f04-6e7a-4e6e-9a50-2c38d0a9046a",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fbcb7574-0175-4599-86f3-235daff0064c",
"CreateDate": "2025-12-16T01:12:47.070372-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-16T01:12:47.070372-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "adb6639f-7e56-4521-803c-1cd2ce580a15",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "13804912-34ef-49a0-a3c5-3368d6c09831",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "dea29d7d-2d13-4206-9e31-7ff9c1701927",
"CreateDate": "2025-12-16T01:12:47.070372-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-16T01:12:47.070372-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "1e17bcca-f482-4a8d-a9b9-3bb4d5ae4383",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-16T01:12:47.070372-08:00",
"MeasurementValueNeededDate": "2025-12-16T01:12:47.070372-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f0139b76-a287-4fd9-9330-b486f87954b9",
"CreateDate": "2025-12-16T01:12:47.070372-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-16T01:12:47.070372-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-16T01:12:47.070372-08:00",
"MeasurementValueNeededDate": "2025-12-16T01:12:47.070372-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "eb4c4c73-758b-49c5-84e9-585528118271",
"CreateDate": "2025-12-16T01:12:47.070372-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-16T01:12:47.070372-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-16T01:12:47.070372-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "23dcc46b-0ec2-4486-adab-8858915a332b",
"CreateDate": "2025-12-16T01:12:47.070372-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-16T01:12:47.070372-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}