DELETE Attachments

Deletes the given attachment.

Request Information

URI Parameters

None.

Body Parameters

The attachment to delete. The Content field does not need to be filled in.

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": "8d40334c-9f90-46fd-8e33-efa1d2aa044d",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AttachmentCategory": {
    "AttachmentCategoryId": "60cbb208-c270-447f-a737-783a06ad3391",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "7cd82e66-fdef-4a37-9fbd-1e7fd4fdbc61",
    "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
    "CreateUser": "sample string 4",
    "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
    "LastModifiedUser": "sample string 5"
  },
  "Asset": {
    "AssetId": "fdb0d5f6-d1f4-4946-9c67-fdc69d2350cb",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "55432329-2a8c-4a2e-93f9-09ca32b27eeb",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "IsWell": true,
      "DisplayColor": "sample string 4",
      "SourceSystemId": "sample string 5",
      "CompanyId": "60b6b012-df91-4086-b608-a84e391e3857",
      "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
      "CreateUser": "sample string 7",
      "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
      "LastModifiedUser": "sample string 8"
    },
    "AssetGroup": {
      "AssetGroupId": "b318f5f3-42d1-4d78-9f3f-4a13d385cb3e",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-11-22T21:32:47.7914533-08:00",
      "MeasurementValueNeededDate": "2024-11-22T21:32:47.7914533-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "69199706-76d0-4d87-a04f-0074331c7e7e",
      "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "State": {
      "StateId": "a5858a67-ff24-4e29-a740-bb5be3b08211",
      "EffectiveDate": "2024-11-22T21:32:47.7914533-08:00",
      "StateType": {
        "StateTypeId": "517110cd-2b1b-42b8-aa1c-e02b8874c554",
        "Name": "sample string 1",
        "IsOperational": true,
        "AssetType": {
          "AssetTypeId": "55432329-2a8c-4a2e-93f9-09ca32b27eeb",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "60b6b012-df91-4086-b608-a84e391e3857",
          "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 3",
        "CompanyId": "7228fa04-9dda-42ba-9972-a3a207f91edd",
        "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
        "LastModifiedUser": "sample string 6"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "3631911a-c200-43f3-ae05-4bf5744b221b",
      "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "Status": {
      "StatusId": "53b05790-0db9-4dd8-ab68-21e2ea62b774",
      "EffectiveDate": "2024-11-22T21:32:47.7914533-08:00",
      "StatusType": {
        "StatusTypeId": "45f30a60-b914-4125-9e24-4f1adc55f223",
        "Name": "sample string 1",
        "IsProducing": true,
        "IsInjecting": true,
        "AssetType": {
          "AssetTypeId": "55432329-2a8c-4a2e-93f9-09ca32b27eeb",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "IsWell": true,
          "DisplayColor": "sample string 4",
          "SourceSystemId": "sample string 5",
          "CompanyId": "60b6b012-df91-4086-b608-a84e391e3857",
          "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
          "CreateUser": "sample string 7",
          "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
          "LastModifiedUser": "sample string 8"
        },
        "SourceSystemId": "sample string 4",
        "CompanyId": "3d504167-a243-4bc2-9dda-a7c2981fc540",
        "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "1761d4e3-2408-4ec7-a355-3c53314a4453",
      "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "WellPurpose": {
      "WellPurposeId": "9745157f-b414-4e5e-bbb1-6198b42bb9ca",
      "EffectiveDate": "2024-11-22T21:32:47.7914533-08:00",
      "WellPurposeType": {
        "WellPurposeTypeId": "bd900441-862b-4af1-8a4b-cd1259ddf596",
        "IsProducer": true,
        "IsInjector": true,
        "Name": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "14947b46-32b7-46e3-a0ae-9516c4c206a2",
        "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
        "CreateUser": "sample string 6",
        "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
        "LastModifiedUser": "sample string 7"
      },
      "SourceSystemId": "sample string 1",
      "CompanyId": "f5b9e598-7c13-40aa-aef2-de979c543678",
      "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
      "CreateUser": "sample string 3",
      "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
      "LastModifiedUser": "sample string 4"
    },
    "FormValueNeededDate": "2024-11-22T21:32:47.7914533-08:00",
    "MeasurementValueNeededDate": "2024-11-22T21:32:47.7914533-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "d23213e2-c0c9-44ec-b8d9-18c8e03faec3",
    "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "FileType": "sample string 3",
  "FileSize": 1,
  "UploadDate": "2024-11-22T21:32:47.7914533-08:00",
  "Content": "QEA=",
  "SourceSystemId": "sample string 4",
  "CompanyId": "b49feabd-cd5d-4af4-bb08-b24fe714904a",
  "CreateDate": "2024-11-22T21:32:47.7914533-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-11-22T21:32:47.7914533-08:00",
  "LastModifiedUser": "sample string 7"
}

Response Information

Resource Description

NameDescriptionTypeAdditional information
Data

Object

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {},
  "Total": 1,
  "Message": "sample string 2"
}