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": "66433aa2-fd43-41f8-9aeb-c26c8fc321eb",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "43629b77-7856-4558-9ab3-8c494a368952",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "b4c77e75-6515-4c38-84a0-09aa44588f15",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "b98eb332-fb7b-49d4-8a57-ac4f3961a21a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "3a656135-74d5-4885-9ab1-bea09d3b9be3",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "a4f9c0ef-dc38-4217-9f76-1d1439be2c12",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "b5f95609-ad2b-48d6-a150-78d177808d84",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"MeasurementValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "22128a86-d531-4bac-9243-ba4072308cc4",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"MeasurementValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "d3afd26e-1b47-44b5-a18b-99816dde6de7",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-04-14T09:15:11.6491332-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "618dd3f2-5f43-44ec-a40a-13ddc89d4d2a",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-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": "e3cd2cf5-9dd1-4c30-904a-3bae43658141",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "718aa0fe-d769-4cad-988c-9bbbc5c1fce9",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "fdfbf9e7-e54e-4ede-8f7e-3e57e98a9e9e",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "ce5ccf58-df70-445c-9290-27ead1ca490c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "9f7f2d5a-57c0-42ae-8a21-2d7008a451fe",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "0592f930-be07-4a0e-a166-88854bef0d46",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "af96e384-5707-41b4-a31c-0f105e6c7a97",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"MeasurementValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "f0ece776-6c39-479f-80fd-9969019d6d3e",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"MeasurementValueNeededDate": "2026-04-14T09:15:11.6491332-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "7d838a3a-a2d6-4a87-baff-70bbd056ab95",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-04-14T09:15:11.6491332-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "2421c682-fb04-43ee-b1f6-0dd4b3772f10",
"CreateDate": "2026-04-14T09:15:11.6491332-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-04-14T09:15:11.6491332-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}