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
NameDescriptionTypeAdditional 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": "43ba4152-5762-4eec-91e6-2f11cf859a0f",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AttachmentCategory": {
    "AttachmentCategoryId": "3265abe4-5f2b-48b1-93a8-361de12b1e3f",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "9cc10f16-6fcd-4925-b153-675a3fa1df52",
    "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
    "CreateUser": "sample string 4",
    "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
    "LastModifiedUser": "sample string 5"
  },
  "Asset": {
    "AssetId": "16e2fb3d-2c92-465f-bded-eed6ecaddce5",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "e94b6350-7718-4359-8705-ca53320c1fbd",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "4bc9a4a5-74f2-45b2-b83e-9c2924339e86",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "AssetGroup": {
      "AssetGroupId": "02977428-7a3d-4948-9600-eea3f726cc39",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
      "MeasurementValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "ad02d225-27a6-4ecd-83bb-215b0e67bc7f",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "State": {
      "StateId": "ab2e532f-3288-4951-9729-f91bbc7a67d7",
      "EffectiveDate": "2024-11-22T21:26:06.5376398-08:00",
      "StateType": {
        "StateTypeId": "8a710dc8-6509-4d21-837a-63d3bfeb247e",
        "Name": "sample string 1",
        "IsOperational": true,
        "AssetType": {
          "AssetTypeId": "e94b6350-7718-4359-8705-ca53320c1fbd",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "4bc9a4a5-74f2-45b2-b83e-9c2924339e86",
          "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 3",
        "CompanyId": "74499a25-1a21-4b54-94f8-1a3407420526",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "509532cd-cae4-4eda-a9ef-3d7989c02a88",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "Status": {
      "StatusId": "9fddacd4-67fb-4497-8445-604992011bf7",
      "EffectiveDate": "2024-11-22T21:26:06.5376398-08:00",
      "StatusType": {
        "StatusTypeId": "f8021cf3-3fe7-4602-bc86-4b15ef9c7bfb",
        "Name": "sample string 1",
        "IsProducing": true,
        "IsInjecting": true,
        "AssetType": {
          "AssetTypeId": "e94b6350-7718-4359-8705-ca53320c1fbd",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "4bc9a4a5-74f2-45b2-b83e-9c2924339e86",
          "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 4",
        "CompanyId": "5ebfa166-0cad-4d2d-bead-51098ecf4491",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "f24149ef-370d-4188-9b77-d467e8a19f45",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "WellPurpose": {
      "WellPurposeId": "012088b2-0744-469e-a482-56317f940667",
      "EffectiveDate": "2024-11-22T21:26:06.5376398-08:00",
      "WellPurposeType": {
        "WellPurposeTypeId": "8fe6aedf-3f1e-4d9e-81e6-52d5b180116c",
        "IsProducer": true,
        "IsInjector": true,
        "Name": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "980314e5-083d-4b98-8d69-92224cfbb5c7",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "f199d94f-a72b-4af6-8c9b-07cf774ce997",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "FormValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
    "MeasurementValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "a646c06c-af6b-4f0f-84dd-71e7ca9601cd",
    "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "FileType": "sample string 3",
  "FileSize": 1,
  "UploadDate": "2024-11-22T21:26:06.5376398-08:00",
  "Content": "QEA=",
  "SourceSystemId": "sample string 4",
  "CompanyId": "a5eba230-ad17-4617-a549-f1cb8e67f2d2",
  "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-11-22T21:26:06.5376398-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.

NameDescriptionTypeAdditional information
Data

Attachment

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "AttachmentId": "ac26ea98-12ed-451b-b5ac-6022143aa863",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AttachmentCategory": {
      "AttachmentCategoryId": "19fe8f35-f149-4ca6-9c49-a9f83d3223b6",
      "Name": "sample string 1",
      "SourceSystemId": "sample string 2",
      "CompanyId": "523bf69e-cc41-4442-9d0a-564825786edd",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 4",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 5"
    },
    "Asset": {
      "AssetId": "d40eae07-7899-4e98-ab89-9e5c91b57617",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayOrder": 1,
      "AssetType": {
        "AssetTypeId": "97e18269-fe87-47c1-a91a-9bf3c89de6fa",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "IsWell": true,
        "DisplayColor": "sample string 4",
        "SourceSystemId": "sample string 5",
        "CompanyId": "b4abd578-e6c3-4227-955e-c3231b5bf1e7",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 7",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 8"
      },
      "AssetGroup": {
        "AssetGroupId": "3ca5dffc-53f5-43ba-8956-80c8fc918723",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "ParentGroup": null,
        "DisplayOrder": 1,
        "FormValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
        "MeasurementValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
        "SourceSystemId": "sample string 3",
        "CompanyId": "04b0650c-18bd-435e-9b20-aee1024fbdf8",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "ParentAsset": null,
      "Location": "sample string 3",
      "Barcode": {
        "Format": 0,
        "Code": "sample string 1"
      },
      "State": {
        "StateId": "e3e18c07-5863-4deb-8650-c269d610552b",
        "EffectiveDate": "2024-11-22T21:26:06.5376398-08:00",
        "StateType": {
          "StateTypeId": "0c873eef-d8d5-4227-97f5-59c5be1d8245",
          "Name": "sample string 1",
          "IsOperational": true,
          "AssetType": {
            "AssetTypeId": "97e18269-fe87-47c1-a91a-9bf3c89de6fa",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "IsWell": true,
            "DisplayColor": "sample string 4",
            "SourceSystemId": "sample string 5",
            "CompanyId": "b4abd578-e6c3-4227-955e-c3231b5bf1e7",
            "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
            "CreateUser": "sample string 7",
            "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
            "LastModifiedUser": "sample string 8"
          },
          "SourceSystemId": "sample string 3",
          "CompanyId": "45196eea-5508-49ed-b310-60bcc7683fa0",
          "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
          "LastModifiedUser": "sample string 6"
        },
        "SourceSystemId": "sample string 1",
        "CompanyId": "b6ec4e93-b320-4201-86c2-91e91a5fff29",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 3",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 4"
      },
      "Status": {
        "StatusId": "4db519c4-b1f3-4251-a676-d611213fe75d",
        "EffectiveDate": "2024-11-22T21:26:06.5376398-08:00",
        "StatusType": {
          "StatusTypeId": "8d2fc3e9-f397-4eba-9ad7-a3f8f4245415",
          "Name": "sample string 1",
          "IsProducing": true,
          "IsInjecting": true,
          "AssetType": {
            "AssetTypeId": "97e18269-fe87-47c1-a91a-9bf3c89de6fa",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "IsWell": true,
            "DisplayColor": "sample string 4",
            "SourceSystemId": "sample string 5",
            "CompanyId": "b4abd578-e6c3-4227-955e-c3231b5bf1e7",
            "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
            "CreateUser": "sample string 7",
            "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
            "LastModifiedUser": "sample string 8"
          },
          "SourceSystemId": "sample string 4",
          "CompanyId": "659fb0b3-d3c1-4655-872d-f53aa66c8b72",
          "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
          "CreateUser": "sample string 6",
          "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
          "LastModifiedUser": "sample string 7"
        },
        "SourceSystemId": "sample string 1",
        "CompanyId": "8735a8a0-de0a-4ce7-8faa-c3ac1df9df39",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 3",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 4"
      },
      "WellPurpose": {
        "WellPurposeId": "7462dd01-3ed8-4b36-8550-9ee0753bcd53",
        "EffectiveDate": "2024-11-22T21:26:06.5376398-08:00",
        "WellPurposeType": {
          "WellPurposeTypeId": "7cc877d3-7d71-4827-98d2-2abdcc87ca3b",
          "IsProducer": true,
          "IsInjector": true,
          "Name": "sample string 3",
          "SourceSystemId": "sample string 4",
          "CompanyId": "a34109a6-568a-4f40-9559-ab19e648f42e",
          "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
          "CreateUser": "sample string 6",
          "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
          "LastModifiedUser": "sample string 7"
        },
        "SourceSystemId": "sample string 1",
        "CompanyId": "5f03dbf9-26e3-43d5-90ce-ba13e1315c62",
        "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
        "CreateUser": "sample string 3",
        "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
        "LastModifiedUser": "sample string 4"
      },
      "FormValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
      "MeasurementValueNeededDate": "2024-11-22T21:26:06.5376398-08:00",
      "HasChildren": true,
      "SourceSystemId": "sample string 5",
      "CompanyId": "a8ac6411-220e-499a-92c8-eb8169ec3d1a",
      "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "FileType": "sample string 3",
    "FileSize": 1,
    "UploadDate": "2024-11-22T21:26:06.5376398-08:00",
    "Content": "QEA=",
    "SourceSystemId": "sample string 4",
    "CompanyId": "29619372-04d2-4cfd-aef2-9f001ca4b459",
    "CreateDate": "2024-11-22T21:26:06.5376398-08:00",
    "CreateUser": "sample string 6",
    "LastModifiedDate": "2024-11-22T21:26:06.5376398-08:00",
    "LastModifiedUser": "sample string 7"
  },
  "Total": 1,
  "Message": "sample string 1"
}