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": "8129892e-2041-4dde-b70a-a8df333c06d4", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "39a92464-f9ec-45ec-85b9-2bcb9d437df0", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "ce9b06b4-ba4c-4a09-a1ca-842542746a1b", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "1f9e89d6-5928-4ac4-ac4a-8ac10830d1d9", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "45ac7efd-e881-4692-8fef-0053d645c139", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "09dae826-9ec7-465f-8f59-38256c3e7ab8", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "53bb7b4d-859a-4bc2-bd97-d5797ff47827", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "MeasurementValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "SourceSystemId": "sample string 3", "CompanyId": "3778f31b-e48e-4c57-8600-2d0e8ed87872", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "MeasurementValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "19e33ec6-fb57-4eb4-ae58-8e76fab29792", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-26T05:56:00.6346331-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "aa720e58-b8c7-4211-a6f7-8e0bee989a6c", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-26T05:56:00.6346331-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": "b7bf5fb2-c20a-470c-b6ab-639cdeb1cbdd", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "ffa42664-a660-468c-9888-d8a20333d450", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "b9a9c853-2606-47f7-ba78-71c40f7015d6", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e1005baa-9def-4218-acd8-033d15750c8b", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c3ca5083-76c9-4a95-9a54-16989da0c3dd", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "ad010001-33d2-43a0-82d4-78e57287f637", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "aaee64f2-17a2-452b-8ed6-5a9b09190b3d", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "MeasurementValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "SourceSystemId": "sample string 3", "CompanyId": "43c9f639-9f29-430b-adbc-b44a2994fd85", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "MeasurementValueNeededDate": "2024-04-26T05:56:00.6346331-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "5a12367f-a971-4144-b59c-40aa6c2a0427", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-26T05:56:00.6346331-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "dc152cce-37e2-4051-a14a-2f6fe3a0219b", "CreateDate": "2024-04-26T05:56:00.6346331-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-26T05:56:00.6346331-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }