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": "c7eb3c02-8605-4ea4-bd8e-de42d4e9c0b4", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "6dcbdec8-5a9d-4507-af8e-a8c06d34c695", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "48561288-011f-439e-813b-043bc65da0f9", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e478ace7-1401-4380-b762-466e01de58ba", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "97d7a80a-94a2-488e-9c87-03f9d41afbb2", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "268c0a47-0531-485f-a0dc-03979391954c", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "3ef3ddfe-3262-43b6-a7be-c871a252d264", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "SourceSystemId": "sample string 3", "CompanyId": "7f2ce1ff-13f5-4e71-83f6-8441588f5870", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2c1a08d1-362b-4cc9-95d5-7352b387bb0b", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-10-10T15:21:33.9239825-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "bcc14a57-9964-4874-8b86-481814997ba7", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:33.9239825-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": "3f81fb12-7fe8-43fe-9088-16ce1fd774d1", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "92348a14-c7a6-4827-afcd-5399e6e12d22", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "7e7b5e83-9827-484a-8b73-97e1a006cfd6", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "0638616a-9df0-4778-ad49-56ab8f34da92", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "ecca9f17-171d-4115-97a3-98e646198f51", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "6f5d4480-5c0f-4308-85d3-c7212e0fde9d", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "556b6d3f-b8d1-46fc-9fe6-3869f364a20b", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "SourceSystemId": "sample string 3", "CompanyId": "b0fe288b-2192-483d-b8c1-fdf16ca3c19d", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "MeasurementValueNeededDate": "2024-10-10T15:21:33.9239825-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "f9030a1e-3619-4094-b0e3-28dfab53e1a2", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-10-10T15:21:33.9239825-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "d7872954-970c-4a42-bd01-e12b34bdf38b", "CreateDate": "2024-10-10T15:21:33.9239825-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-10-10T15:21:33.9239825-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }