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": "58d48f33-a3e6-410b-84f9-7c030585e2cd", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "7761b233-e327-4744-b694-5031e00777c1", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "27280e6d-0b18-4f27-bf1f-762679a3fb00", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "d343d362-f97a-451e-9ee5-81e058f8b783", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "1f82c6c0-c7d5-4e7d-ba37-c57e9fc2f5f3", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "aad5bcfd-dd6c-442f-8526-c31968c23b4a", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "1cf9e6a6-18b3-4210-81c9-81eb7cf71ce3", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "MeasurementValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "SourceSystemId": "sample string 3", "CompanyId": "4973d023-2769-4325-b810-f1281142eed1", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "MeasurementValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "43249676-1b6d-46f3-ad23-86f628e6c20b", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-03T15:25:52.8956162-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "3fd4c86b-e106-4d2a-af4b-de42178b024f", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:25:52.8956162-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": "de6c991f-23a0-4c45-af99-3de7c414743e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "73e7a342-7058-4454-9e31-99ba938c3060", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "1b261422-6673-4f38-9c76-a30e6bde4120", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b071bad2-8472-4067-84b1-12d3805e1cbe", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c3691477-8c6d-4ecb-97e0-6d6adbb7694b", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e56c6df8-585e-4bca-866f-0115e9aac20b", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "c52ba4c2-8755-4d2b-9cf4-78d350294d94", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "MeasurementValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "SourceSystemId": "sample string 3", "CompanyId": "6a65262f-6ed8-4033-8b32-86d7b8742059", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "MeasurementValueNeededDate": "2025-04-03T15:25:52.8956162-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "68061a90-d408-44a6-837d-de1f6a7bf30a", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-04-03T15:25:52.8956162-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "6a6a720f-55eb-4b39-bd23-5bfc106bb03d", "CreateDate": "2025-04-03T15:25:52.8956162-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-04-03T15:25:52.8956162-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }