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": "a449aaf9-0012-4bea-85a2-39efd16280bf",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8fefc4c3-969e-4867-9bd7-58dcbb14b983",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "57af52fb-10b9-4581-a329-1f92aa303455",
"CreateDate": "2025-12-31T15:26:02.4202799-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-31T15:26:02.4202799-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "f9e0096a-d02f-4f75-8b0e-79059195849f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b5c137b0-daa3-44f3-83ab-27284477a32f",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "bd8caedd-955e-443a-953a-6cdd648d77e0",
"CreateDate": "2025-12-31T15:26:02.4202799-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-31T15:26:02.4202799-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "fd48e1f0-7eff-41dd-8a96-23838b4e2396",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-31T15:26:02.4202799-08:00",
"MeasurementValueNeededDate": "2025-12-31T15:26:02.4202799-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "3d02694d-fea4-42fe-a2d8-b03e7d00722b",
"CreateDate": "2025-12-31T15:26:02.4202799-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-31T15:26:02.4202799-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-31T15:26:02.4202799-08:00",
"MeasurementValueNeededDate": "2025-12-31T15:26:02.4202799-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "84a958f9-5377-470a-aad8-89be62ab3b9f",
"CreateDate": "2025-12-31T15:26:02.4202799-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-31T15:26:02.4202799-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-31T15:26:02.4202799-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "8ba417e6-83cf-46f5-a828-47d0ddd4af6a",
"CreateDate": "2025-12-31T15:26:02.4202799-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-31T15:26:02.4202799-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": "06a3837c-478b-4e1d-bc45-495ff5ba091b",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "5aa9b2ed-f23d-481a-8078-aabd0e6a1eaf",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "c62c472d-9dad-4dea-8806-ac1052631a6e",
"CreateDate": "2025-12-31T15:26:02.4359217-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-12-31T15:26:02.4359217-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "3a150d25-4afc-42b7-8fd2-655a8bfb62d2",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3f646bad-552f-416b-8c76-c9f3baa94073",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "3b1a6985-710c-47cc-98a1-6db12d7a71a5",
"CreateDate": "2025-12-31T15:26:02.4359217-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-31T15:26:02.4359217-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "71eaa97e-382e-4fbb-a2b4-becec8fd5c93",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-12-31T15:26:02.4359217-08:00",
"MeasurementValueNeededDate": "2025-12-31T15:26:02.4359217-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "adb6bd64-94a2-4567-9ffa-4fc6ca56be7d",
"CreateDate": "2025-12-31T15:26:02.4359217-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-12-31T15:26:02.4359217-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2025-12-31T15:26:02.4359217-08:00",
"MeasurementValueNeededDate": "2025-12-31T15:26:02.4359217-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "2643adf1-62ce-4d74-a260-e0fe4db6713d",
"CreateDate": "2025-12-31T15:26:02.4359217-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-12-31T15:26:02.4359217-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-12-31T15:26:02.4359217-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "0c7b4c65-0afc-42ec-a917-51d6d370ac8d",
"CreateDate": "2025-12-31T15:26:02.4359217-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-12-31T15:26:02.4359217-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}