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": "5beacca5-a1f6-411b-9151-f6ca60d24acd", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "ce97c9e6-ab3d-4098-98b4-5a53b68d4360", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "dca95d83-23be-4dfd-8fa8-fd32c40b1d5c", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "c22af899-07ef-4ddd-b527-fee05fc04ccc", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "ac3602a2-991d-4dc2-9252-de18a1d53518", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "dcf09d11-f252-430d-948e-93b68f33e412", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "7aa90549-9d9f-4850-b074-b007091749c0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "MeasurementValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "SourceSystemId": "sample string 3", "CompanyId": "3cb6ca14-10d6-41bb-9a16-eb27ab9ca1d0", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "MeasurementValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "b04cd530-025e-4a5e-9042-8eefcc8faf5d", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-09T00:37:13.5518342-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "7c6d4beb-bc18-4cdb-876c-ade543ba3743", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08: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": "0c22012e-1252-4912-a97c-a9f013d399c3", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "3bfccf96-d82b-4c25-8f76-2747351f6878", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "a69e25ca-f83f-4e4a-bde0-7e326e3df07d", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "896b0e37-0e1d-4715-8567-7d4aeae52c29", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "db01ed6d-6290-4893-9426-a58119bf3527", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "59a2c15f-b6d6-47b7-af57-e9f98feeb6f3", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "b7d2aae1-6492-4791-b7c0-ad6fe351f3dd", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "MeasurementValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "SourceSystemId": "sample string 3", "CompanyId": "da525614-c348-4760-a68f-92789a4e611a", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "MeasurementValueNeededDate": "2024-12-09T00:37:13.5518342-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "333bda4b-7fa9-45bd-b982-361430a1d871", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-09T00:37:13.5518342-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "4b435501-38e1-4677-81c6-3b572aed9f74", "CreateDate": "2024-12-09T00:37:13.5518342-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-09T00:37:13.5518342-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }