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": "78a3b9a0-dce0-4175-b119-416a82a7acdd", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "dcf63c9f-d9b0-4a82-804d-aeeeeb38df19", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2a1c3aae-c8b2-4488-afc2-d6f28f76c5b2", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-30T14:46:56.0516639-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "641f1fb8-a729-45ae-bde2-be23a42eee17", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "8fa9bbcb-669d-4a3e-83b5-c496defe7c38", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "538318bb-cd64-4736-b7f8-931cc5a7ca60", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:46:56.0516639-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "0bca747f-ab8a-4194-853d-1aec69cb8a6e", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-30T14:46:56.0516639-07:00", "MeasurementValueNeededDate": "2025-04-30T14:46:56.0516639-07:00", "SourceSystemId": "sample string 3", "CompanyId": "6fe904a8-b5f6-48b1-b6d6-2c8e6551f723", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T14:46:56.0516639-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-30T14:46:56.0516639-07:00", "MeasurementValueNeededDate": "2025-04-30T14:46:56.0516639-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "57844099-9e46-4997-9ba4-d8c0dad0a19e", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-30T14:46:56.0516639-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-30T14:46:56.0516639-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "188a2da2-1623-4b1f-9a41-824b802b54da", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:46:56.0516639-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": "371c1459-7316-46f4-88cc-908e415b2c27", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "def26d25-8070-4f1e-b252-0ad7543c62ef", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "bb35263d-3e09-4a13-942e-912286402f60", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-30T14:46:56.0516639-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "71639712-f7d4-4e72-bd05-e736c9162732", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "4aa945aa-4be4-4db7-b96d-784bb8b732f3", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "b9c8cb69-1334-4c1a-983b-449f873c9d21", "CreateDate": "2025-04-30T14:46:56.0516639-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:46:56.067294-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "f250ba77-5afd-4e8f-ba04-640a75679571", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-30T14:46:56.067294-07:00", "MeasurementValueNeededDate": "2025-04-30T14:46:56.067294-07:00", "SourceSystemId": "sample string 3", "CompanyId": "5973d3f8-7a26-4d9a-9420-9636bb1b813a", "CreateDate": "2025-04-30T14:46:56.067294-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-30T14:46:56.067294-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-30T14:46:56.067294-07:00", "MeasurementValueNeededDate": "2025-04-30T14:46:56.067294-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0f32a44d-f377-4d1b-b495-ee1a192881e9", "CreateDate": "2025-04-30T14:46:56.067294-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-30T14:46:56.067294-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-30T14:46:56.067294-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "4e258bcc-56d2-45da-8be2-76173f834895", "CreateDate": "2025-04-30T14:46:56.067294-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-30T14:46:56.067294-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }