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": "c387e4f3-2232-44fd-830c-7ad9a47bbe83", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "d002986c-ff97-456e-b389-bf3dfea45c38", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "95866420-d59a-4d08-91a1-837822fefa58", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "3212e6d8-2963-4c4a-9793-775728967311", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "751aba17-2452-4e03-8a5d-0390a347deb4", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5bd6fefc-8b52-4ef0-b591-f7e75b8cdf4d", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "60ef6fc1-86bf-497d-b2f0-b28fa6d9584f", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "MeasurementValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "SourceSystemId": "sample string 3", "CompanyId": "025ac93a-786c-49a6-93f2-307669024ce3", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "MeasurementValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "4a1db8bf-f986-420e-857f-84f37cf58cb1", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-21T18:46:37.9115065-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "fa5ba3a5-a39d-41b0-af3e-26fec65b883f", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T18:46:37.9115065-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": "7031e035-9050-42ec-9f46-ee726011dc9e", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "cf6db8d1-8442-4d58-ba46-ca121360429a", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2daa0412-d6ef-4314-bc26-fd273d206cca", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "dc9703e8-fbc6-4bd5-9ccb-ba12af7003ae", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "10e5203e-3198-4c54-b62a-fcdd0bb8ffc0", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "089bb944-2896-456d-a4e8-6b330d0e36ee", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "e9e10833-4951-4148-8a16-bccb8f8f675a", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "MeasurementValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "SourceSystemId": "sample string 3", "CompanyId": "cf3027bb-7d3f-44b0-8bf7-628fa6cd096c", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "MeasurementValueNeededDate": "2024-12-21T18:46:37.9115065-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "8fb9a5b4-c7c1-42ae-b0b3-4a3c0f3defd8", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-12-21T18:46:37.9115065-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "dfa896b0-1edc-4961-8edc-6e0281f40626", "CreateDate": "2024-12-21T18:46:37.9115065-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-12-21T18:46:37.9115065-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }