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": "14109012-25ad-43da-8e95-f188d36d69fd", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "b66c5527-eab9-470c-9936-b33b27d9a49b", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "34930699-63d6-4378-9747-d676750a3352", "CreateDate": "2025-07-31T03:19:21.8729803-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-31T03:19:21.8729803-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "474358ee-7610-413a-9612-78ee5e8a7783", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "a30894b4-34d1-4e10-815d-edbcee9ab838", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "bd9114bf-8d82-4610-b490-cd1af96f3b1f", "CreateDate": "2025-07-31T03:19:21.8729803-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T03:19:21.8729803-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "72634173-6c1f-407c-bab3-dcaa09ac0760", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-31T03:19:21.8729803-07:00", "MeasurementValueNeededDate": "2025-07-31T03:19:21.8729803-07:00", "SourceSystemId": "sample string 3", "CompanyId": "85d3c651-581f-4ce8-9780-fd954c9cf854", "CreateDate": "2025-07-31T03:19:21.8729803-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-31T03:19:21.8729803-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-31T03:19:21.8729803-07:00", "MeasurementValueNeededDate": "2025-07-31T03:19:21.8729803-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2d515c36-5b9b-4f81-8b9d-f1843e841ed8", "CreateDate": "2025-07-31T03:19:21.8729803-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-31T03:19:21.8729803-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-31T03:19:21.8729803-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "9664d32f-45af-49bb-93b1-8f4ae1e572f7", "CreateDate": "2025-07-31T03:19:21.8729803-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T03:19:21.8729803-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": "c650b9b3-904e-4ee5-8c2e-95e2af8ee801", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "ca37f3d5-c8d1-42a8-90aa-54aa85566979", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "58afd340-4a1c-4676-b0e4-8c7dbaca08cf", "CreateDate": "2025-07-31T03:19:21.8886449-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-31T03:19:21.8886449-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "8c8433b8-c9b4-4bd7-8744-f5ebee841589", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "9305c7d9-446e-4f90-8553-313311c9f745", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "dd44ca7d-3443-4a24-b967-42ba2fc66684", "CreateDate": "2025-07-31T03:19:21.8886449-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T03:19:21.8886449-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "7d8a339f-a515-4603-aa5c-468c432f268f", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-31T03:19:21.8886449-07:00", "MeasurementValueNeededDate": "2025-07-31T03:19:21.8886449-07:00", "SourceSystemId": "sample string 3", "CompanyId": "81d91e64-ddc6-419b-b094-c2ee264080ec", "CreateDate": "2025-07-31T03:19:21.8886449-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-31T03:19:21.8886449-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-31T03:19:21.8886449-07:00", "MeasurementValueNeededDate": "2025-07-31T03:19:21.8886449-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "619e23ab-d71a-47d8-8e71-76502275ae50", "CreateDate": "2025-07-31T03:19:21.8886449-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-31T03:19:21.8886449-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-31T03:19:21.8886449-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "d2def06e-4cb3-482a-8c22-ee4134917773", "CreateDate": "2025-07-31T03:19:21.8886449-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-31T03:19:21.8886449-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }