DELETE api/DocumentTypes/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

DocumentType
NameDescriptionTypeAdditional information
Id

integer

None.

DocumentTypeName

string

None.

CreatedDate

date

None.

Documents

Collection of Document

None.

DocumentCategories

Collection of DocumentCategory

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DocumentTypeName": "sample string 2",
  "CreatedDate": "2025-12-11T17:52:29.8488343+02:00",
  "Documents": [
    {
      "$id": "2",
      "Id": 1,
      "UserId": "sample string 2",
      "Path": "sample string 3",
      "Name": "sample string 4",
      "Title": "sample string 5",
      "Description": "sample string 6",
      "CreatedDate": "2025-12-11T17:52:29.8488343+02:00",
      "UpdatedDate": "2025-12-11T17:52:29.8488343+02:00",
      "DeletedDate": "2025-12-11T17:52:29.8488343+02:00",
      "DocumentCategoryId": 8,
      "DocumentTypeId": 9,
      "DocumentExtensionId": 10,
      "DocumentType": {
        "$ref": "1"
      },
      "DocumentCategory": {
        "$id": "3",
        "Id": 1,
        "CategoryName": "sample string 2",
        "DocumentTypeId": 3,
        "DocumentCategoryImageId": 1,
        "DocumentCategoryImage": {
          "$id": "4",
          "ID": 1,
          "Title": "sample string 2",
          "Description": "sample string 3",
          "Contents": "sample string 4",
          "Image": "QEA="
        },
        "DocumentType": {
          "$ref": "1"
        },
        "CategoryImage": {
          "$ref": "4"
        },
        "Documents": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ]
      },
      "DocumentExtension": {
        "$id": "5",
        "Id": 1,
        "Extension": "sample string 2",
        "Icon": "sample string 3",
        "Documents": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ]
      },
      "DocumentAudit": {
        "$id": "6",
        "Id": 1,
        "DocumentId": 2,
        "DocumentAuditTypeId": 3,
        "LogDate": "2025-12-11T17:52:29.8488343+02:00",
        "CreatedByID": 5,
        "Document": {
          "$ref": "2"
        }
      }
    },
    {
      "$ref": "2"
    }
  ],
  "DocumentCategories": [
    {
      "$ref": "3"
    },
    {
      "$ref": "3"
    }
  ]
}