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": "9e47f30a-21ed-4458-af8f-fdecc0a28b0b", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "bec75dfd-bb5a-42b2-b9d9-7abe2095542d", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2ece7036-2089-4de1-9db6-e6f36da62582", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "1a9ca162-9f69-4fd8-b4bf-e31e4b8d05a5", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "7b9d5633-3291-4364-9dde-b8938d3fec2e", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6064970c-0e60-4bd0-b6a3-56ad40295e47", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "17398142-3c3e-4bf2-83d3-190435c0e043", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "MeasurementValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "SourceSystemId": "sample string 3", "CompanyId": "de42110d-0225-46fa-b5f3-8a96c484da68", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "MeasurementValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9491221b-4cf1-4671-a1d3-af1521337191", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-02-05T06:01:56.8117052-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e775e1f1-8c7d-4bb0-9d84-5809319b5cef", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08: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": "dff9e36d-350a-4943-ab90-b737fc9db6ea", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "b5276cf3-d8b4-4da9-9439-7eaa82db02b0", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "fade8a60-f39b-4b60-950f-9ee0ff884d1e", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "802dc7e0-58d9-4309-9a01-0fb2425510e8", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8c3e448a-b935-48f7-b173-50521ac09c10", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "3caaa07e-40b9-4018-8e8e-eede823fae2e", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "d91ebde7-5c5b-4d8f-aa7b-31f6bb6667bf", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "MeasurementValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "SourceSystemId": "sample string 3", "CompanyId": "aca65b8c-04c0-479d-abef-c73118cf1152", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "MeasurementValueNeededDate": "2025-02-05T06:01:56.8117052-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0058cdc3-e652-4180-a0c4-85d94253a258", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-02-05T06:01:56.8117052-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "d59d95ac-6c82-4cf4-b129-339f198c0548", "CreateDate": "2025-02-05T06:01:56.8117052-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-02-05T06:01:56.8117052-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }