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": "9e87e06a-c39b-4d38-8184-700e789119f2", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "95255d7f-5f84-4982-92df-23912181e7cc", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "d0b53a3f-7400-4100-90a9-9d856ae3d8c5", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "e4b2b7b9-2ccf-405d-abbc-ed759e0ddab1", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "e6473781-5698-4af0-8216-41b81e5b397a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ec5f5f3d-f1ae-4526-8e08-f6ac6e6ad4c7", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "1a51c782-de42-41cc-a609-8065fa2e65ec", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "SourceSystemId": "sample string 3", "CompanyId": "8b9f6ae6-4a74-43a8-8e21-64c7b5438045", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "e2a5df2e-9055-4875-9a42-64367f33a88c", "EffectiveDate": "2025-08-29T17:22:12.7865849-07:00", "StateType": { "StateTypeId": "ea91ef36-1fc3-45c6-bdff-0c33bb5a5279", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "e6473781-5698-4af0-8216-41b81e5b397a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ec5f5f3d-f1ae-4526-8e08-f6ac6e6ad4c7", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "b9e7088f-6d21-4e2f-8a89-0792a1a83693", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "164a8bd8-7de9-4553-95bc-7a4cfe77e7f3", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "5e633521-f0c1-4e3a-843d-e08c7ac1f3be", "EffectiveDate": "2025-08-29T17:22:12.7865849-07:00", "StatusType": { "StatusTypeId": "0af23302-ce85-4d9e-bb79-bc541b8e73b8", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "e6473781-5698-4af0-8216-41b81e5b397a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ec5f5f3d-f1ae-4526-8e08-f6ac6e6ad4c7", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "871a9b4b-ff0d-48d0-8895-ed544d9c0158", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "220a1187-2433-4300-ac5f-f7ffa226e17c", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "04e3fc85-95d7-4a50-afe9-9677f53f3ee0", "EffectiveDate": "2025-08-29T17:22:12.7865849-07:00", "WellPurposeType": { "WellPurposeTypeId": "7e0308eb-af1e-41a6-8b5f-2eb15516377c", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "2d953f32-e8ff-455a-a26e-8818657c667f", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "fdd98d2e-90db-4382-a305-f2cf05dec4c7", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "49785047-e3f5-4f8a-b773-dcd0e84330e1", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-29T17:22:12.7865849-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "96a2572e-95a7-407f-aae4-5212fccde759", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:12.7865849-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": "ce3ff5c4-ba0d-4b3b-939d-dc8decfe7579", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "022103ba-a149-4abf-8702-fe359bfd8af4", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "5762c6ad-f105-4230-866c-0aa32baabed5", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "543dbaf4-863e-4eac-b670-3295b8c5d6d3", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "58babf74-6080-4344-9964-2e7c0e8f8643", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "8a681a89-4250-48fe-a77b-ca96779ecb3a", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "6f6b9453-47ec-464e-94d5-305af9b3da47", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "SourceSystemId": "sample string 3", "CompanyId": "05bc3138-9265-45cf-90d7-72fbc8249f1b", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "eb2589bb-0eff-403e-b705-ad5206edeef6", "EffectiveDate": "2025-08-29T17:22:12.7865849-07:00", "StateType": { "StateTypeId": "426b37a2-1d6e-4537-bdc5-230887bbf17c", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "58babf74-6080-4344-9964-2e7c0e8f8643", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "8a681a89-4250-48fe-a77b-ca96779ecb3a", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "70dd66a8-5e54-4f52-bc2e-203ae29e07b9", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "81bb932c-90d4-4f7a-b8fa-ce54b668ed23", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "7c4e3459-1397-40d4-9756-cb3a2aedfb1d", "EffectiveDate": "2025-08-29T17:22:12.7865849-07:00", "StatusType": { "StatusTypeId": "9b366213-1a99-4bed-9f9b-129e66e13765", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "58babf74-6080-4344-9964-2e7c0e8f8643", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "8a681a89-4250-48fe-a77b-ca96779ecb3a", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "36f03423-9e58-466d-af52-58681eb64507", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "8c4d0fca-225f-4cb2-8a08-7e3ebb89af9e", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "46ac866f-d366-494c-b4fc-c811f5a39954", "EffectiveDate": "2025-08-29T17:22:12.7865849-07:00", "WellPurposeType": { "WellPurposeTypeId": "41cd25df-aeb2-42b0-b6ef-aaccaeae5692", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "4e8afae6-127f-484a-b8ba-b989dbd65aab", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "03f627a1-97e4-469d-80f6-7afb8e25a61a", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "MeasurementValueNeededDate": "2025-08-29T17:22:12.7865849-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "1f03a67f-3ff1-4744-ae16-9b3bad84285c", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-08-29T17:22:12.7865849-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "da49fe6c-736d-4baf-b18d-341e28c1e93a", "CreateDate": "2025-08-29T17:22:12.7865849-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-08-29T17:22:12.7865849-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }