PUT Attachments
Updates the given attachment. Only the Name and Description of the attachment may be updated.
Request Information
URI Parameters
None.
Body Parameters
The attachment to update
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": "e317d050-f8b7-40e5-a57b-b0c3a617e8e7", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "47e3549c-f608-4ece-b57d-d5e82a59636f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "05485ab1-6aa6-4085-abe3-07a01b0757e1", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "8e770a2a-dea0-485c-aa79-a4e797d3c5af", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "0dca767a-dd61-4a6f-8bed-ec104dafba05", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "876830c7-76f2-470c-93d3-0ec2a5c30a7c", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "ea1bba35-7041-4da2-bf94-6dee7f68684d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "MeasurementValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "SourceSystemId": "sample string 3", "CompanyId": "bc2a753e-a64f-43da-b837-caec38eb3989", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "MeasurementValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2bed3613-0467-4a4f-8bd0-6d94fde145a9", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T06:52:52.7291919-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "361862d0-336e-4113-8dd8-353f74d43966", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 7" }
Response Information
Resource Description
On success, the updated 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": "3ecdbc87-0dac-4b53-8f99-f12aebc8a1cb", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "7f044321-524a-4c9b-a024-da9c70cb87a5", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "0bf28f7a-77c4-42a9-a24e-7dc81ab3b41b", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "577ad012-2afc-41c1-b692-530ef3b9a373", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "bf653e75-7eb3-4699-9f5a-b4e6efbdd19c", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "81eef968-c648-4bc8-9e07-9c6184c158fc", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "70823baa-e203-4e15-a45f-26925bdda9dc", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "MeasurementValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "SourceSystemId": "sample string 3", "CompanyId": "a63eb18a-4136-4c99-842e-ba90983a48a7", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "MeasurementValueNeededDate": "2025-06-02T06:52:52.7291919-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "25b644ea-aa47-45ea-afea-5af0998556bd", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-06-02T06:52:52.7291919-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "7d95c90a-f870-413f-a705-31eda1382678", "CreateDate": "2025-06-02T06:52:52.7291919-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-06-02T06:52:52.7291919-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }