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": "a95234c8-130d-4e19-90b2-3487dc2e08c6", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "c2492d77-2b70-4fd7-9561-9b2fd2a62394", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "ba801a92-5d76-47f2-ab47-c6ab791fedf4", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "13ad510f-f7f8-401e-896e-46c9d5fd9ccf", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "14f3659e-3a27-4a5b-a4d6-a8848220a0dd", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "cfaef014-47aa-4498-a6f3-8ac8522fdb1f", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "6aa90f33-0476-4ea7-91c1-0fe81e632bd7", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "MeasurementValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "SourceSystemId": "sample string 3", "CompanyId": "66cacfe8-86dc-42d1-b258-852d9968530c", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "MeasurementValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "0818d90a-219f-4a45-8e9c-cb5a1bda821b", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-11-21T04:42:49.3063748-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "299a0bc7-3218-41fc-8ed5-36f382057855", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:42:49.3063748-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": "177f5b0f-82e7-4b4a-b87e-aed44b101bc6", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "af92bdd1-ab34-43c8-86ba-31671d55eadb", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "42ef4317-0b52-4897-853a-73fa437a8119", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "5277cb3f-2ae2-4107-ad96-614112120b76", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "c0484a41-7891-4934-aa30-3f08d42bd2c5", "Name": "sample string 1", "Description": "sample string 2", "DisplayColor": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "f0d6cded-04e1-4e7e-a166-ea41e8ad22d6", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 7" }, "AssetGroup": { "AssetGroupId": "93aedcf8-be0f-4fde-9c20-f13e39a323d0", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "MeasurementValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "SourceSystemId": "sample string 3", "CompanyId": "87e5b039-f543-4d1e-a1e3-f6b6cf6faf5b", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "FormValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "MeasurementValueNeededDate": "2024-11-21T04:42:49.3063748-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "8500e571-7d88-48a9-8a44-d5a43969c8b3", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2024-11-21T04:42:49.3063748-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "71a7c5a6-a33f-4351-96bf-25c91c0dd885", "CreateDate": "2024-11-21T04:42:49.3063748-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2024-11-21T04:42:49.3063748-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }