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": "7d3f92a1-0066-462e-84a6-c5438315366b", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "935a2a92-d9b7-4564-9fdb-0341a7c8ca35", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "4c9a3845-1ba9-433d-a704-6497fcc48096", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "bc914410-7004-4a67-a6f9-44fd0f243e99", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "568094c0-6939-4672-b03a-83b9208a96a3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "46605f0c-b1fb-4b94-923f-80088ad57d71", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "b00ef5fd-aac0-46a6-a84a-bed0d2c92c30", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T11:29:13.2578072-07:00", "MeasurementValueNeededDate": "2025-05-08T11:29:13.2578072-07:00", "SourceSystemId": "sample string 3", "CompanyId": "6fd3b9e2-b622-4f99-ae8b-0c4bcb3d530e", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "34c0960c-57ef-4d52-8746-e02d02ebe4bf", "EffectiveDate": "2025-05-08T11:29:13.2578072-07:00", "StateType": { "StateTypeId": "bc64cfc8-7f15-4be2-92a6-d9e5c5e690f0", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "568094c0-6939-4672-b03a-83b9208a96a3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "46605f0c-b1fb-4b94-923f-80088ad57d71", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "225388f4-fabc-4914-bafb-0a0def368b7b", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "8f093713-b93b-42b7-a154-6d8ef8736c4a", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "83511eb5-a14c-4c78-a8c6-4bcd0eb6fde0", "EffectiveDate": "2025-05-08T11:29:13.2578072-07:00", "StatusType": { "StatusTypeId": "cf5f0aa1-083c-4e5b-8be4-cf0f30e09a0e", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "568094c0-6939-4672-b03a-83b9208a96a3", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "46605f0c-b1fb-4b94-923f-80088ad57d71", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "8c0f644b-0caa-4973-82b7-f2e3deb82c89", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "a26a617d-e6fe-4834-8cd7-a01c2435066c", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "5d9bf91e-2757-4e4e-9629-7b0215b8ab02", "EffectiveDate": "2025-05-08T11:29:13.2578072-07:00", "WellPurposeType": { "WellPurposeTypeId": "e6ff803a-ad34-4612-8e41-ce77ef560ba1", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e30ea74a-799a-48bb-84a1-8d9bb5e907b7", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "afd79131-1b86-4113-989d-205fb7aa5fb7", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-08T11:29:13.2578072-07:00", "MeasurementValueNeededDate": "2025-05-08T11:29:13.2578072-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7431a0da-9447-4e1e-bad2-c531c7cde18c", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2578072-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-08T11:29:13.2578072-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "e1f7f7ff-4eb7-4676-8c6f-b02661901bd9", "CreateDate": "2025-05-08T11:29:13.2578072-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T11:29:13.2578072-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": "a674af5e-a970-487e-95e7-023dd8e555b2", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "025c1ed9-b49a-4bef-bfb8-36de1611ccaf", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "de59a2ad-4770-40bc-bfac-5a8ec412f2dc", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "1afbea78-9409-41de-80b4-b4c647db18c3", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "53008469-01b6-4c32-a341-9ba58bd960fc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "470a74b0-6a12-4c96-85d5-ea5d597d3f81", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "f12945d7-728e-499a-9f9a-0ecb8dc59ddf", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-05-08T11:29:13.2734188-07:00", "MeasurementValueNeededDate": "2025-05-08T11:29:13.2734188-07:00", "SourceSystemId": "sample string 3", "CompanyId": "f65505fa-1fea-469d-8682-c9c8ac79021b", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "8c951ff0-0018-4260-8c3c-d002f55fd142", "EffectiveDate": "2025-05-08T11:29:13.2734188-07:00", "StateType": { "StateTypeId": "89445ec2-7786-4d39-ad74-7832a5d9d9f0", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "53008469-01b6-4c32-a341-9ba58bd960fc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "470a74b0-6a12-4c96-85d5-ea5d597d3f81", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "0186f422-5ada-4032-9362-1b590541ac82", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "ca83e95e-97a4-496f-b3e6-045406404b9a", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "f3c9cae2-6429-4223-95c1-f66501ee0118", "EffectiveDate": "2025-05-08T11:29:13.2734188-07:00", "StatusType": { "StatusTypeId": "12dc65c5-78a3-483a-b83c-a04bd203a9a7", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "53008469-01b6-4c32-a341-9ba58bd960fc", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "470a74b0-6a12-4c96-85d5-ea5d597d3f81", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "09e4b620-243e-4f73-83be-c2202509ccee", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "59735cd3-e06f-4e65-bf88-b4d2ac06cc73", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "d75d8351-56a9-494f-a584-b28eb17ff600", "EffectiveDate": "2025-05-08T11:29:13.2734188-07:00", "WellPurposeType": { "WellPurposeTypeId": "5a9e6129-6168-4b06-88ed-9a696d6c0f63", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "247c0aca-b425-4219-9071-f667e132bfb8", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "91d54cff-c010-417a-b802-73cdc8588cd0", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-05-08T11:29:13.2734188-07:00", "MeasurementValueNeededDate": "2025-05-08T11:29:13.2734188-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "979689dc-bad9-4281-a1b7-924cc11d6e8c", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-05-08T11:29:13.2734188-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "6d8be498-cf90-4412-b729-df1d753b3b5d", "CreateDate": "2025-05-08T11:29:13.2734188-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-05-08T11:29:13.2734188-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }