POST api/mto/newReport

Creates new report in the database

Request Information

URI Parameters

None.

Body Parameters

ReportModel
NameDescriptionTypeAdditional information
ReportId

integer

Required

ReportName

string

Required

ReportDate

date

Required

Intro

string

None.

MtoId

integer

None.

NumberOfMtosSend

integer

None.

NumberOfMtosReceived

integer

None.

ResponsePercentage

integer

None.

RatingOverall

decimal number

None.

FeedbackIntro

string

None.

Outro

string

None.

Author

string

None.

ActionPoints

Collection of ActionPointModel

None.

RatingByChapterByDepartments

Collection of RatingByChapterByDepartmentModel

None.

RatingByChapterByCustomers

Collection of RatingByChapterByCustomerModel

None.

RatingByChapters

Collection of RatingByChapterModel

None.

Request Formats

application/json, text/json

Sample:
{
  "ReportId": 1,
  "ReportName": "sample string 2",
  "ReportDate": "2025-06-17T14:36:38.1604133+02:00",
  "Intro": "sample string 4",
  "MtoId": 5,
  "NumberOfMtosSend": 6,
  "NumberOfMtosReceived": 7,
  "ResponsePercentage": 8,
  "RatingOverall": 9.1,
  "FeedbackIntro": "sample string 10",
  "Outro": "sample string 11",
  "Author": "sample string 12",
  "ActionPoints": [
    {
      "ActionPointId": 1,
      "ActionPointName": "sample string 2",
      "Feedback": "sample string 3",
      "PeopleResponsible": "sample string 4",
      "AnswerId": 1,
      "QuestionId": 1
    },
    {
      "ActionPointId": 1,
      "ActionPointName": "sample string 2",
      "Feedback": "sample string 3",
      "PeopleResponsible": "sample string 4",
      "AnswerId": 1,
      "QuestionId": 1
    }
  ],
  "RatingByChapterByDepartments": [
    {
      "RbcbdId": 1,
      "Rating": 2.1,
      "Chapter": {
        "ChapterId": 1,
        "ChapterName": "sample string 2",
        "Questions": [
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          },
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          }
        ]
      },
      "Department": {
        "DepartmentId": 1,
        "DepartmentName": "sample string 2"
      }
    },
    {
      "RbcbdId": 1,
      "Rating": 2.1,
      "Chapter": {
        "ChapterId": 1,
        "ChapterName": "sample string 2",
        "Questions": [
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          },
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          }
        ]
      },
      "Department": {
        "DepartmentId": 1,
        "DepartmentName": "sample string 2"
      }
    }
  ],
  "RatingByChapterByCustomers": [
    {
      "RbcbcId": 1,
      "Rating": 2.1,
      "Chapter": {
        "ChapterId": 1,
        "ChapterName": "sample string 2",
        "Questions": [
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          },
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          }
        ]
      },
      "Customer": {
        "CustomerId": 1,
        "CustomerEmail": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "Company": "sample string 5",
        "PassWord": "sample string 6",
        "CustomLink": "sample string 7",
        "IsActive": true
      }
    },
    {
      "RbcbcId": 1,
      "Rating": 2.1,
      "Chapter": {
        "ChapterId": 1,
        "ChapterName": "sample string 2",
        "Questions": [
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          },
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          }
        ]
      },
      "Customer": {
        "CustomerId": 1,
        "CustomerEmail": "sample string 2",
        "FirstName": "sample string 3",
        "LastName": "sample string 4",
        "Company": "sample string 5",
        "PassWord": "sample string 6",
        "CustomLink": "sample string 7",
        "IsActive": true
      }
    }
  ],
  "RatingByChapters": [
    {
      "RatingByChapterId": 1,
      "Rating": 2.1,
      "Chapter": {
        "ChapterId": 1,
        "ChapterName": "sample string 2",
        "Questions": [
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          },
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          }
        ]
      }
    },
    {
      "RatingByChapterId": 1,
      "Rating": 2.1,
      "Chapter": {
        "ChapterId": 1,
        "ChapterName": "sample string 2",
        "Questions": [
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          },
          {
            "QuestionId": 1,
            "QuestionName": "sample string 2",
            "QuestionKind": {
              "QuestionkindId": 1,
              "QuestionKindName": "sample string 2"
            }
          }
        ]
      }
    }
  ]
}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Report

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.