POST api/mto/new/{bol}
Creates a new MTO in the database with a name only
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bol | integer |
Required |
Body Parameters
MTOModelName | Description | Type | Additional information |
---|---|---|---|
MtoId | integer |
Required |
|
MtoName | string |
Required |
|
DateCreated | date |
Required |
|
DateSend | date |
None. |
|
DateClosed | date |
None. |
|
SentMailsAmount | integer |
None. |
|
Sort | string |
None. |
|
Report | ReportModel |
None. |
|
Chapters | Collection of ChapterModel |
None. |
|
Departments | Collection of DepartmentModel |
None. |
|
Customers | Collection of CustomerModel |
None. |
|
MtoUserResponses | Collection of MtoUserResponseModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "MtoId": 1, "MtoName": "sample string 2", "DateCreated": "2025-06-17T15:19:55.5878669+02:00", "DateSend": "2025-06-17T15:19:55.5878669+02:00", "DateClosed": "2025-06-17T15:19:55.5878669+02:00", "SentMailsAmount": 1, "Sort": "sample string 4", "Report": { "ReportId": 1, "ReportName": "sample string 2", "ReportDate": "2025-06-17T15:19:55.5878669+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" } } ] } } ] }, "Chapters": [ { "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" } } ] }, { "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" } } ] } ], "Departments": [ { "DepartmentId": 1, "DepartmentName": "sample string 2" }, { "DepartmentId": 1, "DepartmentName": "sample string 2" } ], "Customers": [ { "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 }, { "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 } ], "MtoUserResponses": [ { "ResponseId": 1, "Response": true, "User": { "UserId": 1, "UserEmail": "sample string 2", "UserDomain": "sample string 3", "FirstName": "sample string 4", "LastName": "sample string 5", "IsActive": true, "Role": { "RoleId": 1, "RoleName": "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 } }, { "ResponseId": 1, "Response": true, "User": { "UserId": 1, "UserEmail": "sample string 2", "UserDomain": "sample string 3", "FirstName": "sample string 4", "LastName": "sample string 5", "IsActive": true, "Role": { "RoleId": 1, "RoleName": "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 } } ] }
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
Mto
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.