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": "5cd37338-bba6-4c5b-b98d-ebf395d6ab71", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "f68936c3-030d-4012-b7e1-37c3ed385408", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "91b91e6b-7777-4659-bbe1-3719e0732b80", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "b1d254b5-1057-45c0-8c21-fa5166d66336", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "3464a154-7ddd-4ce7-901c-b2ca83137b86", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "205d9fb8-9c7d-4a07-ab04-6298a77d33b3", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "72956a4b-4623-4425-b0c8-9b12c3e10172", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "MeasurementValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "SourceSystemId": "sample string 3", "CompanyId": "7dffebd3-d678-418f-89bf-088d91051bf0", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "78b36207-1273-44dc-b603-65f3fc44082f", "EffectiveDate": "2025-01-02T11:15:39.7004329-08:00", "StateType": { "StateTypeId": "a58a3f2f-bc3e-4868-948d-40da3527ac7d", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "3464a154-7ddd-4ce7-901c-b2ca83137b86", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "205d9fb8-9c7d-4a07-ab04-6298a77d33b3", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "3876aa9e-e7ff-472d-bf82-0c30ea2d3c99", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "62d3f54f-ca3c-43cc-b675-5a4e9f4ab198", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "98af94f1-1dbe-40c8-84ec-45390e212d93", "EffectiveDate": "2025-01-02T11:15:39.7004329-08:00", "StatusType": { "StatusTypeId": "4f526342-02c7-43c9-997f-5c7e8f3a5867", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "3464a154-7ddd-4ce7-901c-b2ca83137b86", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "205d9fb8-9c7d-4a07-ab04-6298a77d33b3", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "63ae7338-735e-484c-8f4f-edb44bc99876", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "af998525-10a8-412d-84d0-4757038b580c", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "7045ab6f-70b9-4ed0-863c-b0e8c32ba8f3", "EffectiveDate": "2025-01-02T11:15:39.7004329-08:00", "WellPurposeType": { "WellPurposeTypeId": "2d5ba2b1-668d-4141-b40b-1dafca8aa5e2", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "5915e6c2-e284-48c1-a7b9-0f4c7bc71640", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "5aeceb2a-1b09-4847-86d0-e81786834cd3", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "MeasurementValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "9a8cb052-4330-4aa9-92bf-aa1adf32b92b", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-01-02T11:15:39.7004329-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "41e36115-92a4-4bbc-8338-a2e207babcb2", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:15:39.7004329-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": "cecc6108-a8a7-41ee-a2c8-93e084e43f44", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "a410f9c3-ebaf-481a-b2ba-cab037491e0f", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "eb19a00a-e4ff-44f7-a243-c099bc0443e6", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "6cf63ee2-fffe-4183-aa45-34b356f6850a", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "836b0750-9549-4e49-b3de-3949de2b0253", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ff9ae73b-5415-4fbc-87d8-504da8652a61", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "14a22ec5-9a28-4d7e-9a90-2918f7041494", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "MeasurementValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "SourceSystemId": "sample string 3", "CompanyId": "fb244edc-bc66-4c48-aa0d-605f9c673ac0", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "783558a1-941f-4916-b0be-a41a1bb4e84b", "EffectiveDate": "2025-01-02T11:15:39.7004329-08:00", "StateType": { "StateTypeId": "c8202341-4843-4aeb-8fad-ec0da6e07129", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "836b0750-9549-4e49-b3de-3949de2b0253", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ff9ae73b-5415-4fbc-87d8-504da8652a61", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "c24c33ea-a305-4f99-b682-9101d37d50ad", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "c299e59b-5a3b-4632-b32c-8f790987147b", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "4a24e96e-5552-46b6-8c3e-fb6ed39844f5", "EffectiveDate": "2025-01-02T11:15:39.7004329-08:00", "StatusType": { "StatusTypeId": "c66e8ad8-de33-4c00-87d8-6c250d19d431", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "836b0750-9549-4e49-b3de-3949de2b0253", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "ff9ae73b-5415-4fbc-87d8-504da8652a61", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "4cd05c2d-eb2e-4c1e-86eb-081efa082822", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "b7988d9c-6cf6-414b-b681-19460ce5cbe8", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "38be32b1-c465-4d42-97f3-925845378006", "EffectiveDate": "2025-01-02T11:15:39.7004329-08:00", "WellPurposeType": { "WellPurposeTypeId": "6051ae9e-82b6-49a2-b67b-52e2c4432a4c", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d38754d8-83db-45e0-a442-baa560a10117", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "7782b269-dbff-4fed-b352-a2c67079d1dd", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "MeasurementValueNeededDate": "2025-01-02T11:15:39.7004329-08:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "2c4e2959-c72e-4b7b-8ada-1da2232fd65c", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-01-02T11:15:39.7004329-08:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "54bd76a0-13f8-461e-bfc3-8b8742af09f0", "CreateDate": "2025-01-02T11:15:39.7004329-08:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-01-02T11:15:39.7004329-08:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }