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
Attachment| Name | 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": "b43138c1-c434-4c33-83bb-4156d495ca18",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "8c1e4c08-c23b-4fa7-9a89-59a6437799ab",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "42965763-89a6-46ae-a6d0-19a5cbf1cf57",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "09a7456c-27fa-4020-8995-e57026d1a616",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "f21c78a3-78ad-46d2-98d9-f6de670ae9c4",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "33ce017a-42fd-403e-88c3-0d438cb40346",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "4ddcd834-d7da-4b8b-b654-afb01b195efc",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"MeasurementValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "1a1dcd77-cd72-4706-a39a-7f5b76af6232",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "0fe81df5-b102-4099-88ab-139bf4bd9a07",
"EffectiveDate": "2025-11-04T17:14:16.7011213-08:00",
"StateType": {
"StateTypeId": "8b5878b0-b36d-4784-ad8f-4024ad6b1c39",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "f21c78a3-78ad-46d2-98d9-f6de670ae9c4",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "33ce017a-42fd-403e-88c3-0d438cb40346",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "ab1a647a-2709-44d9-b6a4-e90547b37253",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "57c53884-a587-44b0-8442-4ad5168a99f6",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "70b0e3cf-a1de-4fd9-87c4-cdf2e1300d66",
"EffectiveDate": "2025-11-04T17:14:16.7011213-08:00",
"StatusType": {
"StatusTypeId": "913f6183-966a-4900-82f4-2b6f2d46018e",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "f21c78a3-78ad-46d2-98d9-f6de670ae9c4",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "33ce017a-42fd-403e-88c3-0d438cb40346",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "d320c13d-a130-4e74-9a55-0887e57747e5",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "7598ed89-6a68-4033-a8ad-0a11d21d11d1",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "93230b39-795e-42a4-8549-bb0059c07a02",
"EffectiveDate": "2025-11-04T17:14:16.7011213-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "c8489970-39b9-4c12-9a81-3d3072d1535f",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "5767bb24-fe11-469a-bc76-9278bf3d2627",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "f9a5011c-8a4a-4ccb-b39c-a5cff8a6189e",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"MeasurementValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "8a4048b8-f1ae-4751-b830-3a0ac9dc052c",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-04T17:14:16.7011213-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "8d02a511-1cf7-4daa-b805-cd6e6776b2f5",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-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": "bbda83ce-3a27-4c30-ad35-0b9e2d9b2c36",
"Name": "sample string 1",
"Description": "sample string 2",
"AttachmentCategory": {
"AttachmentCategoryId": "69f68b1d-74ab-43bb-b83f-f8d3bb1e7b2b",
"Name": "sample string 1",
"SourceSystemId": "sample string 2",
"CompanyId": "43dcf480-8c59-4ea2-969f-8f31208abcea",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 4",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 5"
},
"Asset": {
"AssetId": "0c503fe3-8d95-4bde-8203-19ac20bc730c",
"Name": "sample string 1",
"Description": "sample string 2",
"DisplayOrder": 1,
"AssetType": {
"AssetTypeId": "d3810d26-846b-4861-83d9-fc1877547f58",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1c0c33e4-52a5-416f-9aec-896e8f9b8ad3",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"AssetGroup": {
"AssetGroupId": "dc0be06c-8940-4fb7-993a-a36cc723b2a6",
"Name": "sample string 1",
"Description": "sample string 2",
"ParentGroup": null,
"DisplayOrder": 1,
"FormValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"MeasurementValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"SourceSystemId": "sample string 3",
"CompanyId": "ddf69738-aae9-4195-b66c-505bb72b47be",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 6"
},
"ParentAsset": null,
"Location": "sample string 3",
"Barcode": {
"Format": 0,
"Code": "sample string 1"
},
"State": {
"StateId": "69a39c36-1f5b-4c40-bfb6-b49e1e96e88c",
"EffectiveDate": "2025-11-04T17:14:16.7011213-08:00",
"StateType": {
"StateTypeId": "00a969f7-180c-4db1-9b64-001b654e1f9c",
"Name": "sample string 1",
"IsOperational": true,
"AssetType": {
"AssetTypeId": "d3810d26-846b-4861-83d9-fc1877547f58",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1c0c33e4-52a5-416f-9aec-896e8f9b8ad3",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 3",
"CompanyId": "ab849a22-6a1d-4aee-bec7-71ba49aad73f",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 5",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 6"
},
"SourceSystemId": "sample string 1",
"CompanyId": "e3e65f15-ef51-4e06-9fff-a405a76abbe5",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 4"
},
"Status": {
"StatusId": "6473e846-98cd-4cab-a95c-3da758b742a1",
"EffectiveDate": "2025-11-04T17:14:16.7011213-08:00",
"StatusType": {
"StatusTypeId": "7d7e44b4-b216-4d67-a97e-56425cf3c802",
"Name": "sample string 1",
"IsProducing": true,
"IsInjecting": true,
"AssetType": {
"AssetTypeId": "d3810d26-846b-4861-83d9-fc1877547f58",
"Name": "sample string 1",
"Description": "sample string 2",
"IsWell": true,
"DisplayColor": "sample string 4",
"SourceSystemId": "sample string 5",
"CompanyId": "1c0c33e4-52a5-416f-9aec-896e8f9b8ad3",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"SourceSystemId": "sample string 4",
"CompanyId": "e0df14dc-5a2e-4f74-a617-2a26062cca68",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "58e89d55-f87e-4d05-9a68-4f521caa1bcc",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 4"
},
"WellPurpose": {
"WellPurposeId": "f89203a1-0a67-41ef-af03-c7eb847b0f20",
"EffectiveDate": "2025-11-04T17:14:16.7011213-08:00",
"WellPurposeType": {
"WellPurposeTypeId": "97ec8833-2c01-432c-b7a6-75df23233417",
"IsProducer": true,
"IsInjector": true,
"Name": "sample string 3",
"SourceSystemId": "sample string 4",
"CompanyId": "190368e5-1528-4246-9537-37bb617490c3",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 7"
},
"SourceSystemId": "sample string 1",
"CompanyId": "bb9d96ca-dc51-4a07-a302-dd1a1b581682",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 3",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 4"
},
"FormValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"MeasurementValueNeededDate": "2025-11-04T17:14:16.7011213-08:00",
"HasChildren": true,
"SourceSystemId": "sample string 5",
"CompanyId": "2fe333f1-5e45-432a-90a0-bbc3aafef20a",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 7",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 8"
},
"FileType": "sample string 3",
"FileSize": 1,
"UploadDate": "2025-11-04T17:14:16.7011213-08:00",
"Content": "QEA=",
"SourceSystemId": "sample string 4",
"CompanyId": "593c996e-8c60-4be0-861e-4e3ebe5b6871",
"CreateDate": "2025-11-04T17:14:16.7011213-08:00",
"CreateUser": "sample string 6",
"LastModifiedDate": "2025-11-04T17:14:16.7011213-08:00",
"LastModifiedUser": "sample string 7"
},
"Total": 1,
"Message": "sample string 1"
}