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": "c8c8b58c-83e7-41c4-9207-39545a61a76d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "b454395b-4569-4a6d-b7b3-ae6dd8038311",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "57621deb-a920-4f6d-8fe7-0233e4c2728a",
"CreateDate": "2026-02-08T18:40:43.7263851-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-02-08T18:40:43.7263851-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "4565b9ff-56d2-4241-8c3c-168f0f5641a7",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "402ec6d7-306e-4033-a0d2-57fe24a2a4e9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "ff913906-f840-49ed-bd14-b06ee41e3db3",
"CreateDate": "2026-02-08T18:40:43.7263851-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-08T18:40:43.7263851-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "7e26cbae-30e2-44d6-bcde-256639f6cb4d",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-02-08T18:40:43.7263851-08:00",
"MeasurementValueNeededDate": "2026-02-08T18:40:43.7263851-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "03eb80d2-ce51-4fbb-8d5d-0472dd634a50",
"CreateDate": "2026-02-08T18:40:43.7263851-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-08T18:40:43.7263851-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-02-08T18:40:43.7263851-08:00",
"MeasurementValueNeededDate": "2026-02-08T18:40:43.7263851-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "bc789073-e682-4c81-ae72-b6f736387f2a",
"CreateDate": "2026-02-08T18:40:43.7263851-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-08T18:40:43.7263851-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-02-08T18:40:43.7263851-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "1df531dc-01e3-44f6-9419-fbf90e6ced9d",
"CreateDate": "2026-02-08T18:40:43.7263851-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-08T18:40:43.7263851-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": "ee2c426e-3545-4f74-b1c2-e4a4278d55fe",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "3422ca07-fd74-4cce-a377-409fa869a6a4",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "add6ad43-2f6c-412a-bab9-b678fed3eaa6",
"CreateDate": "2026-02-08T18:40:43.7420071-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-02-08T18:40:43.7420071-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "8f19da09-36da-4f03-8a20-b4349c550684",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "b5022fe2-6573-40a2-a4f2-c4ab641209f4",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "a71dcd4a-864e-4fd3-ad29-f0e8485704ff",
"CreateDate": "2026-02-08T18:40:43.7420071-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-08T18:40:43.7420071-08:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "d8843755-6e5c-40bd-9626-8e93dba8b067",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-02-08T18:40:43.7420071-08:00",
"MeasurementValueNeededDate": "2026-02-08T18:40:43.7420071-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "4fbb4db6-3c6c-4ac9-968a-8a49440a7fee",
"CreateDate": "2026-02-08T18:40:43.7420071-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-02-08T18:40:43.7420071-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-02-08T18:40:43.7420071-08:00",
"MeasurementValueNeededDate": "2026-02-08T18:40:43.7420071-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "1e50b325-73db-48bc-b1b0-be5e51dcd47d",
"CreateDate": "2026-02-08T18:40:43.7420071-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-02-08T18:40:43.7420071-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-02-08T18:40:43.7420071-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "b1fe41f3-7d55-4316-b02a-83f58b080614",
"CreateDate": "2026-02-08T18:40:43.7420071-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-02-08T18:40:43.7420071-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}