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": "bd3bd195-67dc-4182-9bbe-049a8686b8c2", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "0ef00ef9-e528-434c-b9aa-d2ee9fd3e556", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "2801cfe9-bf11-441a-a14a-3c079b972b37", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "835d42ad-24dd-4b18-a726-55b408e6e035", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "bbe9d1f8-79f4-42f0-9ede-6fd255fb9375", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "074710cc-d3d8-4ac7-ab1b-bdd4aea01956", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "06b21339-021a-42bb-b3c9-c117f53160b4", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-13T10:50:28.8879209-07:00", "MeasurementValueNeededDate": "2025-09-13T10:50:28.8879209-07:00", "SourceSystemId": "sample string 3", "CompanyId": "683a6cc6-951c-45d6-9af4-aa2f1c74702f", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "8c348019-f0da-4ada-9fe2-5b38f29247d4", "EffectiveDate": "2025-09-13T10:50:28.8879209-07:00", "StateType": { "StateTypeId": "8d2be3cc-1141-43b6-84d9-ada87b57c711", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "bbe9d1f8-79f4-42f0-9ede-6fd255fb9375", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "074710cc-d3d8-4ac7-ab1b-bdd4aea01956", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "70b1d347-cedf-4e77-a9c3-0cfc7ad53d09", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "31055c94-07a9-419d-8a7c-a0857d183ac1", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "ca847232-e68d-48bb-9a45-29879792e52b", "EffectiveDate": "2025-09-13T10:50:28.8879209-07:00", "StatusType": { "StatusTypeId": "69e53f9d-46fa-4e8f-8ba9-f73d50cbf76b", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "bbe9d1f8-79f4-42f0-9ede-6fd255fb9375", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "074710cc-d3d8-4ac7-ab1b-bdd4aea01956", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "17b835eb-1d92-4720-9d11-70c75f171b46", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "59978ef9-5d4f-4b65-ac2d-67719da71370", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "b2eb8d27-8d25-4b21-840d-0b2abc901151", "EffectiveDate": "2025-09-13T10:50:28.8879209-07:00", "WellPurposeType": { "WellPurposeTypeId": "337c84cf-de98-40b4-9a30-2c723c7be5de", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "d87e6e8a-6f1a-40f7-9e75-6361357a632d", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "24d5da50-2d79-458c-b0de-9b364747e11e", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-09-13T10:50:28.8879209-07:00", "MeasurementValueNeededDate": "2025-09-13T10:50:28.8879209-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "7e06791c-e75f-45cd-92e9-61870584f4c2", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.8879209-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-13T10:50:28.8879209-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "85327e9c-d79d-42d3-8c75-16309780d21b", "CreateDate": "2025-09-13T10:50:28.8879209-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T10:50:28.8879209-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": "c888cf78-67a5-4539-9268-9b7dafb98677", "Name": "sample string 1", "Description": "sample string 2", "AttachmentCategory": { "AttachmentCategoryId": "391685b5-fa2a-4874-b09b-bbc3936c6295", "Name": "sample string 1", "SourceSystemId": "sample string 2", "CompanyId": "cd729c07-53c9-4c37-8bb3-27294047622b", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 4", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 5" }, "Asset": { "AssetId": "a2545ee1-ca4c-48f7-8b0f-696cf1d3a997", "Name": "sample string 1", "Description": "sample string 2", "DisplayOrder": 1, "AssetType": { "AssetTypeId": "20f083ba-8d74-4d9f-b915-b0ab84b4f61a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0c372302-01c9-46fb-91ff-0f14fb040169", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 8" }, "AssetGroup": { "AssetGroupId": "a40d80c6-a7e6-4e5e-a1a7-12e1df1ae707", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2025-09-13T10:50:28.9035457-07:00", "MeasurementValueNeededDate": "2025-09-13T10:50:28.9035457-07:00", "SourceSystemId": "sample string 3", "CompanyId": "3b406894-bd7f-48e8-b055-e4dbabd9fd5d", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 6" }, "ParentAsset": null, "Location": "sample string 3", "Barcode": { "Format": 0, "Code": "sample string 1" }, "State": { "StateId": "77dec074-619a-4dfa-ace7-da69232a2809", "EffectiveDate": "2025-09-13T10:50:28.9035457-07:00", "StateType": { "StateTypeId": "467d60cc-40a0-4f4c-b8d9-77be94806d0f", "Name": "sample string 1", "IsOperational": true, "AssetType": { "AssetTypeId": "20f083ba-8d74-4d9f-b915-b0ab84b4f61a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0c372302-01c9-46fb-91ff-0f14fb040169", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 3", "CompanyId": "2401d63f-436a-4245-bf90-d99aac0bb3e7", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 5", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 6" }, "SourceSystemId": "sample string 1", "CompanyId": "9ba094fc-4bd8-410a-826b-fbb60c1e4ced", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 4" }, "Status": { "StatusId": "075e3fb9-d0a1-447f-9e80-1e530e1f54f2", "EffectiveDate": "2025-09-13T10:50:28.9035457-07:00", "StatusType": { "StatusTypeId": "d2abf3c9-bf76-44e1-83a0-20923265509b", "Name": "sample string 1", "IsProducing": true, "IsInjecting": true, "AssetType": { "AssetTypeId": "20f083ba-8d74-4d9f-b915-b0ab84b4f61a", "Name": "sample string 1", "Description": "sample string 2", "IsWell": true, "DisplayColor": "sample string 4", "SourceSystemId": "sample string 5", "CompanyId": "0c372302-01c9-46fb-91ff-0f14fb040169", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 8" }, "SourceSystemId": "sample string 4", "CompanyId": "858b0bc8-5080-4143-9c95-2094bc06ea5a", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "d8ee21cc-b8a1-4ecc-94d0-8137932a6286", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 4" }, "WellPurpose": { "WellPurposeId": "40187c97-9442-4b62-9732-17373c2fd714", "EffectiveDate": "2025-09-13T10:50:28.9035457-07:00", "WellPurposeType": { "WellPurposeTypeId": "bd50e991-23ae-4c91-9284-fad9a34af883", "IsProducer": true, "IsInjector": true, "Name": "sample string 3", "SourceSystemId": "sample string 4", "CompanyId": "e29aa521-f87f-4ab0-ac6d-2424d8bc1bda", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 7" }, "SourceSystemId": "sample string 1", "CompanyId": "9e29de6e-bc41-4a18-9b22-74d90a787d5b", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 3", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 4" }, "FormValueNeededDate": "2025-09-13T10:50:28.9035457-07:00", "MeasurementValueNeededDate": "2025-09-13T10:50:28.9035457-07:00", "HasChildren": true, "SourceSystemId": "sample string 5", "CompanyId": "a3187382-35da-4b31-b3f4-6e281157f95e", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 7", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 8" }, "FileType": "sample string 3", "FileSize": 1, "UploadDate": "2025-09-13T10:50:28.9035457-07:00", "Content": "QEA=", "SourceSystemId": "sample string 4", "CompanyId": "d6c7a343-ec59-46af-bcc3-7dd2c8ce6788", "CreateDate": "2025-09-13T10:50:28.9035457-07:00", "CreateUser": "sample string 6", "LastModifiedDate": "2025-09-13T10:50:28.9035457-07:00", "LastModifiedUser": "sample string 7" }, "Total": 1, "Message": "sample string 1" }