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": "12ae8442-ae62-40dd-8e83-0717e55ba89e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "e49d320d-37fb-4664-9e37-b4028f16e84f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "03e27ae2-9d97-4687-aa63-b648b2d38e3d", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "d33125fd-1d0a-42c2-b93b-9738c7e6386a", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c402b1e6-1493-4788-ab67-0886ea297d3a", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "120dcca6-5077-43c0-828f-139e7c7dd2d1", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "7aacef04-2189-4b8a-8992-a8c6fc25b1f8", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "MeasurementValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "SourceSystemId": "sample string 3", "CompanyId": "5910c8e3-f062-4c81-8622-287f7c0c7b99", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "MeasurementValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "853e16fd-63ad-4b3c-90b4-b82871cb862d", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-06T16:28:47.5222173-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "cfa8471b-363f-4132-abd5-983ed31d1364", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-06T16:28:47.5222173-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": "8aa76fd9-7672-4af3-abdf-e16bd0b8ca35", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "cb7fdcf1-39b2-48df-ac10-7d2eadb06adb", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "ae576b00-2010-4998-851d-f2f5d7781f09", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "03e29928-b15d-40de-9594-ca26e51cf2f4", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "2abb2ae9-2e62-4d42-8d65-38d4823901cb", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e1065372-5709-4762-ac8c-0b954a5c2166", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "6402892d-0b6c-436b-8645-ffda403c3935", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "MeasurementValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "SourceSystemId": "sample string 3", "CompanyId": "0cc867cd-50a9-4c26-bc24-0de33f7c7514", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "MeasurementValueNeededDate": "2025-07-06T16:28:47.5222173-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4bbe7374-d586-4229-8404-3bf2e2164c09", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-07-06T16:28:47.5222173-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "7162c1df-cda5-4bcb-99c8-6ef6305242c9", "CreateDate": "2025-07-06T16:28:47.5222173-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-07-06T16:28:47.5222173-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }