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": "d59532fe-3604-4e51-b5a4-df0147eb5da7", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a90bbb2b-01cc-48e0-bce9-00c5ac17df64", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "952043ff-784c-4f3b-ae99-b555601003f4", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "cf02aaa7-c682-4706-8a48-1b1376ac4ebe", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "158f0c0f-221f-4d4e-95b6-acdc4f77e33a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f93cb765-0783-4cab-97fa-702f210e059e", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "4b516798-69a2-4cf9-ae99-f26e16a1be25", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "MeasurementValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "SourceSystemId": "sample string 3", "CompanyId": "47edcbe3-c352-4880-8645-e07bf924a7d7", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "MeasurementValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f4d01e69-c7dc-4c1f-81d3-b303f7f0b031", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-13T21:07:42.4000743-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "86b71d2d-9cc4-49d9-9a9c-f70f216bcd6b", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:07:42.4000743-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": "cc24b4d2-b898-4874-892a-86dc4ad90c39", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "d846ba53-1e8b-4806-89e8-0f8169381a4d", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "efa92096-3817-4e56-ac67-c89713fb0a4d", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "4fefb8a1-8916-4814-85c8-a729cf630657", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "22803d37-a064-489a-8727-614a3f6dbf38", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "04f19551-3fcd-4a27-833d-470a1226238b", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "bfec574a-d9fa-4feb-b3c8-c137e49951aa", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "MeasurementValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "SourceSystemId": "sample string 3", "CompanyId": "adaec282-625d-466b-baf6-5dde355467b7", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "MeasurementValueNeededDate": "2025-09-13T21:07:42.4000743-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "39980266-23a9-4d2d-8ba4-0646cb4801fd", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-13T21:07:42.4000743-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "ea7cb3df-8a72-4b98-9eca-632cb438dacf", "CreateDate": "2025-09-13T21:07:42.4000743-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T21:07:42.4000743-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }