POST api/DocumentExtensions

Request Information

URI Parameters

None.

Body Parameters

DocumentExtension
NameDescriptionTypeAdditional information
Id

integer

None.

Extension

string

None.

Icon

string

None.

Documents

Collection of Document

None.

Request Formats

application/json, text/json

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

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 'DocumentExtension'.

Response Information

Resource Description

DocumentExtension
NameDescriptionTypeAdditional information
Id

integer

None.

Extension

string

None.

Icon

string

None.

Documents

Collection of Document

None.

Response Formats

application/json, text/json

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