POST api/DocumentCategories

Request Information

URI Parameters

None.

Body Parameters

DocumentCategory
NameDescriptionTypeAdditional information
Id

integer

None.

CategoryName

string

None.

DocumentTypeId

integer

None.

DocumentCategoryImageId

integer

None.

DocumentCategoryImage

DocumentCategoryImage

None.

DocumentType

DocumentType

None.

CategoryImage

DocumentCategoryImage

None.

Documents

Collection of Document

None.

Request Formats

application/json, text/json

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

Response Information

Resource Description

DocumentCategory
NameDescriptionTypeAdditional information
Id

integer

None.

CategoryName

string

None.

DocumentTypeId

integer

None.

DocumentCategoryImageId

integer

None.

DocumentCategoryImage

DocumentCategoryImage

None.

DocumentType

DocumentType

None.

CategoryImage

DocumentCategoryImage

None.

Documents

Collection of Document

None.

Response Formats

application/json, text/json

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