POST api/DocumentAuditTypes

Request Information

URI Parameters

None.

Body Parameters

DocumentAuditType
NameDescriptionTypeAdditional information
Id

integer

None.

DocumentTypeId

integer

None.

Name

string

None.

DocumentType

DocumentType

None.

Request Formats

application/json, text/json

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

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DocumentAuditType'.

Response Information

Resource Description

DocumentAuditType
NameDescriptionTypeAdditional information
Id

integer

None.

DocumentTypeId

integer

None.

Name

string

None.

DocumentType

DocumentType

None.

Response Formats

application/json, text/json

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