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": "16b2cc3b-22c0-4667-a9bf-9f93f40a30f9",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "cd60a914-3a99-40e3-a626-ec7ad56e193f",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "15a41628-e974-43d4-ace3-0e21901fe73a",
"CreateDate": "2026-05-04T12:35:21.4995131-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-04T12:35:21.4995131-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "52dbc986-cddc-4ca0-b1a7-822223a8471e",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f89d2c75-2f7b-4b11-9b6a-f3fd6bb174b6",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "4c5a65e2-3441-4ea3-950a-1f9e7508e90c",
"CreateDate": "2026-05-04T12:35:21.4995131-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-04T12:35:21.4995131-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "412bc706-dc3e-4704-9ea9-d233278fb86f",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-04T12:35:21.4995131-07:00",
"MeasurementValueNeededDate": "2026-05-04T12:35:21.4995131-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "ec3699cc-3184-4d1b-ad56-8907834da7aa",
"CreateDate": "2026-05-04T12:35:21.4995131-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-04T12:35:21.4995131-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-04T12:35:21.4995131-07:00",
"MeasurementValueNeededDate": "2026-05-04T12:35:21.4995131-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "29d8764d-f8ca-4c5c-9fc3-85bfd6cb99d9",
"CreateDate": "2026-05-04T12:35:21.4995131-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-04T12:35:21.4995131-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-04T12:35:21.4995131-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "59daface-5eb2-41b8-9937-948ea9853789",
"CreateDate": "2026-05-04T12:35:21.4995131-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-04T12:35:21.4995131-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": "66dfab7b-3599-4ed9-af40-bc1da8614444",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "a60d9a27-a944-4f47-8a2f-8584abc7313e",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "dffbe420-ceb8-4516-9706-689e2c863b90",
"CreateDate": "2026-05-04T12:35:21.5151053-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-05-04T12:35:21.5151053-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "3cc47a98-2ef5-4099-938b-77808619ec52",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "5d4e38ec-8920-429d-a0e4-ab990a09e881",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ee55b97e-c6c4-45dc-81af-b0a6c4e508a7",
"CreateDate": "2026-05-04T12:35:21.5151053-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-04T12:35:21.5151053-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "db5ac53d-299d-45f7-a659-d13a561699a4",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-05-04T12:35:21.5151053-07:00",
"MeasurementValueNeededDate": "2026-05-04T12:35:21.5151053-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "38890c6c-94fc-4e45-9b79-08a96f3430ea",
"CreateDate": "2026-05-04T12:35:21.5151053-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-05-04T12:35:21.5151053-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-05-04T12:35:21.5151053-07:00",
"MeasurementValueNeededDate": "2026-05-04T12:35:21.5151053-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "8c75c267-a6c1-40bc-868a-5807a7d49d8c",
"CreateDate": "2026-05-04T12:35:21.5151053-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-05-04T12:35:21.5151053-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-05-04T12:35:21.5151053-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "606a4521-5077-4371-bfcf-c602fd1caca6",
"CreateDate": "2026-05-04T12:35:21.5151053-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-05-04T12:35:21.5151053-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}