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": "0b9c6d39-31a5-4aa2-9121-11beb886d240",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "fd8f8d15-8aff-4e41-9e78-64f83926b410",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "4f8a0f23-930d-4975-a9e4-45bbe4dafe65",
"CreateDate": "2026-11-22T18:25:16.4495882-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-22T18:25:16.4495882-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "863ffe76-7410-49c3-acb6-fbd815be1903",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "730d8a6f-e422-498d-afde-929c7b4a705a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "119ddc29-3d4b-4600-b033-5689f47de60e",
"CreateDate": "2026-11-22T18:25:16.4495882-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T18:25:16.4495882-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "301d0237-6fdb-40a0-a793-571ef4f894ba",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-22T18:25:16.4495882-08:00",
"MeasurementValueNeededDate": "2026-11-22T18:25:16.4495882-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "1b47f6c7-f3a3-4fbf-b002-5682519b6e1a",
"CreateDate": "2026-11-22T18:25:16.4495882-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-22T18:25:16.4495882-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-11-22T18:25:16.4495882-08:00",
"MeasurementValueNeededDate": "2026-11-22T18:25:16.4495882-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "9937b371-3945-4193-8f3a-d43a6ed97454",
"CreateDate": "2026-11-22T18:25:16.4495882-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T18:25:16.4495882-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-22T18:25:16.4495882-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "9cbbf1ff-bd0b-46f9-a1f7-15063aebf346",
"CreateDate": "2026-11-22T18:25:16.4495882-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T18:25:16.4495882-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": "20d20071-05cb-4171-ba50-237e11601ca2",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "ee7d1670-75e1-4c3d-ae8e-081352d5bb8e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "8ba21d12-6888-43ba-b436-1f911553886b",
"CreateDate": "2026-11-22T18:25:16.4652247-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-11-22T18:25:16.4652247-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "59ac4945-698e-4e82-9b05-1b891a8d675b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "dfcce3cd-d247-4373-92d4-112ee20d4990",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "23362d5e-f165-44aa-9de3-f4d2a024d888",
"CreateDate": "2026-11-22T18:25:16.4652247-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T18:25:16.4652247-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "8cc2578a-0bca-4608-8bb2-5785d0726366",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-11-22T18:25:16.4652247-08:00",
"MeasurementValueNeededDate": "2026-11-22T18:25:16.4652247-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f01feb58-17da-44dc-81d2-03aa225d73d5",
"CreateDate": "2026-11-22T18:25:16.4652247-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-11-22T18:25:16.4652247-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-11-22T18:25:16.4652247-08:00",
"MeasurementValueNeededDate": "2026-11-22T18:25:16.4652247-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "2666ebdc-8c35-4642-9a9c-c493c8301e6f",
"CreateDate": "2026-11-22T18:25:16.4652247-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-11-22T18:25:16.4652247-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-11-22T18:25:16.4652247-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "d23445e8-1067-4c5a-9cf1-fbe1599cf2ca",
"CreateDate": "2026-11-22T18:25:16.4652247-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-11-22T18:25:16.4652247-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}