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.

CreateMachine

string

None.

LastModifiedDate

date

None.

LastModifiedUser

string

None.

LastModifiedMachine

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AttachmentId": "c9a6712b-8969-4af1-bc9c-b696a5d7b027",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AttachmentCategory": {
    "AttachmentCategoryId": "e5617cef-fe34-4a9f-9db7-ab8a8637aadd",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "1abe5759-f169-4a7e-902a-832f265bbe10",
    "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
    "CreateUser": "sample string 4",
    "CreateMachine": "sample string 5",
    "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
    "LastModifiedUser": "sample string 6",
    "LastModifiedMachine": "sample string 7"
  },
  "Asset": {
    "AssetId": "9ffcc707-3d22-4ec1-9e42-134e53ac89d0",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "74f37637-a742-493f-ad0c-8c4d4516a2ec",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "0942ff45-d95a-43b2-a75e-2b7157b5fffe",
      "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
      "CreateUser": "sample string 6",
      "CreateMachine": "sample string 7",
      "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
      "LastModifiedUser": "sample string 8",
      "LastModifiedMachine": "sample string 9"
    },
    "AssetGroup": {
      "AssetGroupId": "4321c72d-a8c3-42ce-ab2f-97b32071e032",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
      "MeasurementValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "39e4de82-87da-4112-b0c5-dd014f63d5c2",
      "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
      "CreateUser": "sample string 5",
      "CreateMachine": "sample string 6",
      "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
      "LastModifiedUser": "sample string 7",
      "LastModifiedMachine": "sample string 8"
    },
    "ParentAsset": null,
    "WellKnownText": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
    "MeasurementValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "5a330789-440d-4731-8a60-890306a73157",
    "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
    "CreateUser": "sample string 7",
    "CreateMachine": "sample string 8",
    "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
    "LastModifiedUser": "sample string 9",
    "LastModifiedMachine": "sample string 10"
  },
  "FileType": "sample string 3",
  "FileSize": 1,
  "UploadDate": "2021-04-17T06:54:41.8729694-07:00",
  "Content": "QEA=",
  "SourceSystemId": "sample string 4",
  "CompanyId": "81ee025e-49cd-4e7e-a499-af3301c1f3f6",
  "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
  "CreateUser": "sample string 6",
  "CreateMachine": "sample string 7",
  "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
  "LastModifiedUser": "sample string 8",
  "LastModifiedMachine": "sample string 9"
}

Response Information

Resource Description

On success, the deleted attachment.

NameDescriptionTypeAdditional information
Data

Attachment

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "AttachmentId": "60f8cb53-8a7b-4e83-9d6b-f38beedc17d4",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "AttachmentCategory": {
      "AttachmentCategoryId": "7bd01b72-ff6e-43d3-a9bb-45bcbc8c466f",
      "Name": "sample string 1",
      "SourceSystemId": "sample string 2",
      "CompanyId": "e1282efe-cc13-4592-b977-3b2eead4f073",
      "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
      "CreateUser": "sample string 4",
      "CreateMachine": "sample string 5",
      "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
      "LastModifiedUser": "sample string 6",
      "LastModifiedMachine": "sample string 7"
    },
    "Asset": {
      "AssetId": "43599e11-a49f-48cd-a48d-d61e4d6973d2",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayOrder": 1,
      "AssetType": {
        "AssetTypeId": "dd0bb643-dcf9-4bad-b0d6-9f48b2a951e6",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "DisplayColor": "sample string 3",
        "SourceSystemId": "sample string 4",
        "CompanyId": "abe8802d-a158-4e70-930f-a8e9e0716f3f",
        "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
        "CreateUser": "sample string 6",
        "CreateMachine": "sample string 7",
        "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
        "LastModifiedUser": "sample string 8",
        "LastModifiedMachine": "sample string 9"
      },
      "AssetGroup": {
        "AssetGroupId": "216d2ad8-e4a0-4f7e-bc71-7541db8a803f",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "ParentGroup": null,
        "DisplayOrder": 1,
        "FormValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
        "MeasurementValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
        "SourceSystemId": "sample string 3",
        "CompanyId": "e266a34d-71b7-4c7a-b148-16a7cf4f5f68",
        "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
        "CreateUser": "sample string 5",
        "CreateMachine": "sample string 6",
        "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
        "LastModifiedUser": "sample string 7",
        "LastModifiedMachine": "sample string 8"
      },
      "ParentAsset": null,
      "WellKnownText": "sample string 3",
      "Barcode": {
        "Format": 0,
        "Code": "sample string 1"
      },
      "FormValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
      "MeasurementValueNeededDate": "2021-04-17T06:54:41.8729694-07:00",
      "HasChildren": true,
      "SourceSystemId": "sample string 5",
      "CompanyId": "c774186c-ce2b-402f-b1cb-df9ca7d07824",
      "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
      "CreateUser": "sample string 7",
      "CreateMachine": "sample string 8",
      "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
      "LastModifiedUser": "sample string 9",
      "LastModifiedMachine": "sample string 10"
    },
    "FileType": "sample string 3",
    "FileSize": 1,
    "UploadDate": "2021-04-17T06:54:41.8729694-07:00",
    "Content": "QEA=",
    "SourceSystemId": "sample string 4",
    "CompanyId": "ffed9eae-24e0-494c-9a16-833aeeee3b1e",
    "CreateDate": "2021-04-17T06:54:41.8729694-07:00",
    "CreateUser": "sample string 6",
    "CreateMachine": "sample string 7",
    "LastModifiedDate": "2021-04-17T06:54:41.8729694-07:00",
    "LastModifiedUser": "sample string 8",
    "LastModifiedMachine": "sample string 9"
  },
  "Total": 1,
  "Message": "sample string 1"
}