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": "181f0267-6061-4021-9837-ef840d37f79d",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "80617eb2-0fd3-465c-bd08-19cc5e90226f",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "ef872313-69e3-4cbf-b4c6-26aab1056eb9",
"CreateDate": "2026-08-09T23:43:10.5970919-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-09T23:43:10.5970919-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "7777e578-eaf1-4233-8a87-efae2c41085b",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "bd354e7c-e483-4412-95f4-f72732b11145",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "228eea67-4936-45d3-8220-9fc9c2f4c5b4",
"CreateDate": "2026-08-09T23:43:10.5970919-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-09T23:43:10.5970919-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "5ad93776-5aa0-4120-a1d9-69e6a35709f1",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-09T23:43:10.5970919-07:00",
"MeasurementValueNeededDate": "2026-08-09T23:43:10.5970919-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "62ddc2a1-d170-4fc0-8256-273fd387efd6",
"CreateDate": "2026-08-09T23:43:10.5970919-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-09T23:43:10.5970919-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-09T23:43:10.5970919-07:00",
"MeasurementValueNeededDate": "2026-08-09T23:43:10.5970919-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "63c992b8-86d2-4cfc-94d2-d75652f7ffc1",
"CreateDate": "2026-08-09T23:43:10.5970919-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:43:10.5970919-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-09T23:43:10.5970919-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "8c6735df-b1fc-4aa3-baee-5764ae719bfa",
"CreateDate": "2026-08-09T23:43:10.5970919-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-09T23:43:10.5970919-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": "37e339dd-9cf7-43a6-9cc3-480715f9e069",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "c0c13e89-84d3-41ae-93b6-461bf56a13ec",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "65dbdd8b-2199-4dde-ad6f-b3869e424503",
"CreateDate": "2026-08-09T23:43:10.6127732-07:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2026-08-09T23:43:10.6127732-07:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0ec74775-0c7b-4a3a-bfd0-7b6526eba6b9",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "714581c9-5c40-491d-bce7-770bfde1579a",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayColor": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "7a9597d5-fb4a-4844-ac6f-c1e17993d8ba",
"CreateDate": "2026-08-09T23:43:10.6127732-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-09T23:43:10.6127732-07:00",
"LastModifiedUser": "sample string 7"
},
"AssetGroup": {
"AssetGroupId": "94486ab3-e53a-4318-a8a6-c779a85807a3",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2026-08-09T23:43:10.6127732-07:00",
"MeasurementValueNeededDate": "2026-08-09T23:43:10.6127732-07:00",
"SourceSystemId": "sample string 3",
"CompanyId": "5721697f-4367-4d52-9357-618232381a0a",
"CreateDate": "2026-08-09T23:43:10.6127732-07:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2026-08-09T23:43:10.6127732-07:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"FormValueNeededDate": "2026-08-09T23:43:10.6127732-07:00",
"MeasurementValueNeededDate": "2026-08-09T23:43:10.6127732-07:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "479a3990-2e52-4408-8aaa-e76141940ffa",
"CreateDate": "2026-08-09T23:43:10.6127732-07:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2026-08-09T23:43:10.6127732-07:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2026-08-09T23:43:10.6127732-07:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "752cb095-bb4c-4edd-a2b7-1807c952ea95",
"CreateDate": "2026-08-09T23:43:10.6127732-07:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2026-08-09T23:43:10.6127732-07:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}