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": "820e7835-a7f4-442b-b023-3f1456b4863a", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "9977def4-19e9-406f-bc1b-a36e5ec1a76e", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "3f0f25fc-8b67-479b-bf3a-a7548d7127b0", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "eb46e347-2711-485d-bec2-e30e73545f0f", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "e781621e-9dd5-411c-a08e-c84e45d1b532", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6ad4b11b-9961-407c-9678-86bb834794d0", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "4b64c614-a3f7-4982-856c-63d872ebde5e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "SourceSystemId": "sample string 3", "CompanyId": "cc398569-2bd6-463a-a9a6-a4da436aff52", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "ef0d1777-05e1-4fe3-b4d9-57ede544271b", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-30T13:00:01.7762597-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "b3fbf285-4253-4529-9b27-6982ec883b81", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.7762597-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": "2196768b-5f4d-448c-943d-2cd1642a7551", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a6d5d895-06f8-468d-97d1-8d03a95960d0", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "502a9fe9-047c-46c5-95fe-f28ce189b0de", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "ed037d6e-b4d0-4c8e-a789-fa27e1d66e16", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "fa37f5ac-20e0-44ba-80dc-afd3368f43ce", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "96a3e327-3600-45bc-bcde-24f7e846ee5f", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "8495b885-5b3a-479c-a0d1-3045150b513d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "SourceSystemId": "sample string 3", "CompanyId": "6abe4dfa-dc0f-4105-baf6-c11ac0fd3c41", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.7762597-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a8266367-679e-47fe-80e5-5ce19f7593f8", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-30T13:00:01.7762597-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f3f63d7b-8730-47e1-b671-e9b1ea1d4d03", "CreateDate": "2025-08-30T13:00:01.7762597-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.7762597-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }