POST Attachments
Creates a new attachment.
Request Information
URI Parameters
None.
Body Parameters
The attachment to create. AttachmentId should not be filled in.
AttachmentName | 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": "7ca2f73e-5b8a-46ad-85fb-e7c35158daf8", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "5877d349-701b-4fcd-b498-3fc3eb64b21e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "a3d6f512-ca8f-4b83-aad2-5bed6b231678", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "dc9c7cdc-8582-49d8-8c3f-a918fd688743", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "cc9cce4b-f429-4367-8a82-a318e94c7226", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "36081f8d-269c-424c-83c9-af37f1310a49", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "4e8cf378-d99a-4ff6-82a0-7a51a3ca7bc3", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "MeasurementValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "SourceSystemId": "sample string 3", "CompanyId": "b82dd887-f974-4a31-b861-78b16c604252", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "MeasurementValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "3a347a87-1562-4baa-80ef-b373eccfa70f", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-10T14:58:07.1039443-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cd611880-ab12-4896-941a-fb40092e678a", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-10T14:58:07.1039443-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": "6fe7ca8f-8418-4b42-b971-390b24b0d9a3", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6a33675b-fb3f-4c19-9450-1d6bd52a2ce1", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "e153b5e3-cc31-4fe9-8f6f-48505a1769e0", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b2db9be4-df65-4752-9bee-34cc2629b293", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c19378b6-bff3-4cd6-958c-2e016cae1754", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "2fa80b53-a026-4e6e-94d3-e1640c4da469", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "555078da-2535-4fde-b224-36e60e4fe592", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "MeasurementValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "SourceSystemId": "sample string 3", "CompanyId": "2f783066-6a53-492e-88a6-3c39dd19f0cc", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "MeasurementValueNeededDate": "2025-10-10T14:58:07.1039443-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "34bc5f87-8ac7-4d50-947a-08029ec7dbdd", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-10-10T14:58:07.1039443-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "0e8df6ec-0eb5-495b-ab2a-a5f1c1a4a34c", "CreateDate": "2025-10-10T14:58:07.1039443-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-10-10T14:58:07.1039443-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }