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": "80cdf927-0a65-4655-9722-f740af257a29",
  "Name": "sample string 1",
  "Description": "sample string 2",
  "AttachmentCategory": {
    "AttachmentCategoryId": "3c0d687c-8dd8-4039-917c-4214638708c3",
    "Name": "sample string 1",
    "SourceSystemId": "sample string 2",
    "CompanyId": "c867d6c4-f6fa-4b68-8700-9b30268f7974",
    "CreateDate": "2024-11-21T05:34:24.6353959-08:00",
    "CreateUser": "sample string 4",
    "LastModifiedDate": "2024-11-21T05:34:24.6353959-08:00",
    "LastModifiedUser": "sample string 5"
  },
  "Asset": {
    "AssetId": "138509da-169b-48e6-86eb-a207e8252f40",
    "Name": "sample string 1",
    "Description": "sample string 2",
    "DisplayOrder": 1,
    "AssetType": {
      "AssetTypeId": "c601e405-4018-47c6-842e-003743e2f30d",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "DisplayColor": "sample string 3",
      "SourceSystemId": "sample string 4",
      "CompanyId": "fe1ad13b-7fa8-41e1-8b91-c2871bd8360d",
      "CreateDate": "2024-11-21T05:34:24.6353959-08:00",
      "CreateUser": "sample string 6",
      "LastModifiedDate": "2024-11-21T05:34:24.6353959-08:00",
      "LastModifiedUser": "sample string 7"
    },
    "AssetGroup": {
      "AssetGroupId": "77c1ff91-96fe-4457-9a1e-0db92b8597a1",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "ParentGroup": null,
      "DisplayOrder": 1,
      "FormValueNeededDate": "2024-11-21T05:34:24.6353959-08:00",
      "MeasurementValueNeededDate": "2024-11-21T05:34:24.6353959-08:00",
      "SourceSystemId": "sample string 3",
      "CompanyId": "25aa73dc-b3bc-400b-b08a-43960c1c7e19",
      "CreateDate": "2024-11-21T05:34:24.6353959-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T05:34:24.6353959-08:00",
      "LastModifiedUser": "sample string 6"
    },
    "ParentAsset": null,
    "Location": "sample string 3",
    "Barcode": {
      "Format": 0,
      "Code": "sample string 1"
    },
    "FormValueNeededDate": "2024-11-21T05:34:24.6353959-08:00",
    "MeasurementValueNeededDate": "2024-11-21T05:34:24.6353959-08:00",
    "HasChildren": true,
    "SourceSystemId": "sample string 5",
    "CompanyId": "a4272826-c33d-402b-920f-e2d3227739ee",
    "CreateDate": "2024-11-21T05:34:24.6353959-08:00",
    "CreateUser": "sample string 7",
    "LastModifiedDate": "2024-11-21T05:34:24.6353959-08:00",
    "LastModifiedUser": "sample string 8"
  },
  "FileType": "sample string 3",
  "FileSize": 1,
  "UploadDate": "2024-11-21T05:34:24.6353959-08:00",
  "Content": "QEA=",
  "SourceSystemId": "sample string 4",
  "CompanyId": "ab42d3ec-6532-4f9f-b685-64fb7e94a27c",
  "CreateDate": "2024-11-21T05:34:24.6353959-08:00",
  "CreateUser": "sample string 6",
  "LastModifiedDate": "2024-11-21T05:34:24.6353959-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"
}