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": "0d360d77-c8f1-40e1-bef9-4c88aa3e6864", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "9807967c-be87-428e-98ad-b6f61d95412f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "c4de5c6b-fd39-439c-a1f7-3a219db4e078", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b4c796cc-1f11-440f-b3da-93a0721fb80a", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "601eb2da-0212-4340-bba6-b1dc47958a49", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f78255a8-11c5-4d7f-9db9-e6a590a6bbaa", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "d6695001-9d14-4e35-9e04-c1e6b78dd121", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "MeasurementValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "SourceSystemId": "sample string 3", "CompanyId": "b7925297-0483-4688-a405-ba16ecf5f544", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "MeasurementValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0880d575-f5ba-432e-a78d-675997246e11", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-24T14:19:59.6389723-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "dc00acc8-861e-4316-9329-261177609cda", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T14:19:59.6389723-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": "81e63f52-0a1d-40f2-9bbf-03f6e6dea87f", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "77db8c15-c69a-4191-bac7-d7e4902ba39c", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "c5e3c536-4c36-4436-b29a-b28a6cc428ba", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "a5d693b2-6741-4d52-a9ee-32d51698ad4d", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "00490d9c-f2dd-40c3-b662-fc3733450bd6", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "54cb2d67-9aff-45e7-87ae-03578d001e2b", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "3d9b4a2f-5297-4424-a6e6-9af0592c9aee", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "MeasurementValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "SourceSystemId": "sample string 3", "CompanyId": "e3f5b705-7b77-40ca-b58d-646ab534aab9", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "MeasurementValueNeededDate": "2025-04-24T14:19:59.6389723-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0196ceea-15d1-4687-826d-8bbedbb4ecd3", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-24T14:19:59.6389723-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "754e5855-dd1b-48d9-81ae-b80a051b5e85", "CreateDate": "2025-04-24T14:19:59.6389723-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-24T14:19:59.6389723-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }