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": "c6d78d98-880b-455d-b2e8-56d572d941bd", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f41c0bbc-4e8d-4196-ab0c-5e190dd3a0cd", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "27f49baf-869d-4405-a42f-1a5cce8ffba5", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "0aad58e2-28c4-44ac-9c6a-2a6cff37a8a4", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "e64cd762-0761-4b3d-a909-fa12f42e7481", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "c0d1ee50-42ed-4706-8fac-3a0aedc793de", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "f2d256c7-0491-4b0e-82dc-b83070a53fa0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "MeasurementValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "SourceSystemId": "sample string 3", "CompanyId": "33989c8b-5895-4479-baab-acbb1bca1dde", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "MeasurementValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "3848dc36-76dc-4555-9435-fa46705100b1", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-19T14:26:41.2338938-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "8cae4c42-0b38-405d-8893-94229bf13cf3", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T14:26:41.2338938-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": "813da986-98fb-479e-9b2c-2c8e88f06da3", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f0d02a56-159f-4b77-87fa-5e7751d529f7", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "39d49587-dd8a-4b24-8d19-a7ff7c3d324d", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "ee24866c-4fcb-406c-8ec5-bc28c240c8d9", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "f168c48c-94e2-4a09-9d38-c913bac478af", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "a63b034e-48e1-4a50-96dc-ca48ad6db6a7", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "9422868c-0877-46ab-98b5-d1c81d499508", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "MeasurementValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "SourceSystemId": "sample string 3", "CompanyId": "db57ef36-847b-41c9-805c-0eeafecac2b7", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "MeasurementValueNeededDate": "2024-04-19T14:26:41.2338938-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "af85bbee-20ab-466b-b4dc-4d096ee089dc", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-04-19T14:26:41.2338938-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "019f3a33-97fb-4c75-8565-52d33fa1a99e", "CreateDate": "2024-04-19T14:26:41.2338938-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-04-19T14:26:41.2338938-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }