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": "b654145c-47d2-4cf9-81c1-4acb22e13b7d", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "abf79491-8c48-42d2-a471-c403d7e921b4", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "72a4554f-83e9-45f6-8615-76a1b6679b4c", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "6897fb40-1e2d-404c-9551-863a628294ff", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "bc517e2d-6962-4f3a-930f-c43c757162d9", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "10e1f380-2ac8-4b52-bc34-b20b9e08a18a", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "14bc0566-0297-481a-8245-7d5b1c9a8e68", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-30T13:00:01.3700177-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.3700177-07:00", "SourceSystemId": "sample string 3", "CompanyId": "36dd9a70-d40d-4ae0-b7bc-44e4b5dfe42d", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T13:00:01.3700177-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.3700177-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.3700177-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f849da7d-0ab5-46e0-ad31-45284194ef56", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-30T13:00:01.3700177-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "f67d6545-6513-46df-b433-32d8b6fdb632", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.3700177-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": "ed081c35-6816-4218-ac70-bd0026aae7c3", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "e6877a8d-ecc5-4f2f-a3f9-d372df6d527f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "c5f9b3ce-cd08-4443-98f8-867fce2ca990", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "5446e1e7-115c-4e9f-827f-29ff9f682c00", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "3d5e42e1-f412-48b4-9baa-5ed5d49d63a0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "11370b22-eecd-45e9-b3e4-61c8afc75b0f", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "112a58ac-c746-4ba0-ab3e-995655eba049", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-30T13:00:01.3700177-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.3700177-07:00", "SourceSystemId": "sample string 3", "CompanyId": "943e12e0-8c41-4359-b0ed-2498951b5a9f", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-30T13:00:01.3700177-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.3700177-07:00", "MeasurementValueNeededDate": "2025-08-30T13:00:01.3700177-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "c9196970-544d-441f-b4a9-33273c9dc0a3", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-30T13:00:01.3700177-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "6acf3ec2-1f7a-4f29-8414-669f7dfbb648", "CreateDate": "2025-08-30T13:00:01.3700177-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-30T13:00:01.3700177-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }