POST api/FAQ

Request Information

URI Parameters

None.

Body Parameters

FAQDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Question

string

None.

Answer

string

None.

LanguageId

integer

None.

SubmittedOn

date

None.

LastUpdatedOn

date

None.

EmailSentOn

date

None.

isPublic

boolean

None.

isComplete

boolean

None.

isEmailSent

boolean

None.

SubmittingUserId

globally unique identifier

None.

SubmittingUserEmail

string

None.

SubmittingUserLanguageId

integer

None.

RespondingUserId

globally unique identifier

None.

Links

Collection of string

None.

FAQCategories

Collection of FAQCategoryDto

None.

Ratings

Collection of FAQRatingDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Question": "sample string 3",
  "Answer": "sample string 4",
  "LanguageId": 5,
  "SubmittedOn": "2019-05-26T03:44:23.3021628-04:00",
  "LastUpdatedOn": "2019-05-26T03:44:23.3021628-04:00",
  "EmailSentOn": "2019-05-26T03:44:23.3021628-04:00",
  "isPublic": true,
  "isComplete": true,
  "isEmailSent": true,
  "SubmittingUserId": "7c718dfc-908a-44c8-8062-b5a426835d25",
  "SubmittingUserEmail": "sample string 12",
  "SubmittingUserLanguageId": 1,
  "RespondingUserId": "58a6c3d2-2213-4305-b4fd-6091e87153cd",
  "Links": [
    "sample string 1",
    "sample string 2"
  ],
  "FAQCategories": [
    {
      "Id": 1,
      "Title": "sample string 2",
      "IconClass": "sample string 3",
      "LanguageId": 4
    },
    {
      "Id": 1,
      "Title": "sample string 2",
      "IconClass": "sample string 3",
      "LanguageId": 4
    }
  ],
  "Ratings": [
    {
      "Id": 1,
      "CreatedOn": "2019-05-26T03:44:23.3031644-04:00",
      "UpdateOn": "2019-05-26T03:44:23.3031644-04:00",
      "Value": 2,
      "UserId": 1,
      "FAQId": 3
    },
    {
      "Id": 1,
      "CreatedOn": "2019-05-26T03:44:23.3031644-04:00",
      "UpdateOn": "2019-05-26T03:44:23.3031644-04:00",
      "Value": 2,
      "UserId": 1,
      "FAQId": 3
    }
  ]
}

application/xml, text/xml

Sample:
<FAQDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <Answer>sample string 4</Answer>
  <EmailSentOn>2019-05-26T03:44:23.3021628-04:00</EmailSentOn>
  <FAQCategories>
    <FAQCategoryDto>
      <IconClass>sample string 3</IconClass>
      <Id>1</Id>
      <LanguageId>4</LanguageId>
      <Title>sample string 2</Title>
    </FAQCategoryDto>
    <FAQCategoryDto>
      <IconClass>sample string 3</IconClass>
      <Id>1</Id>
      <LanguageId>4</LanguageId>
      <Title>sample string 2</Title>
    </FAQCategoryDto>
  </FAQCategories>
  <Id>1</Id>
  <LanguageId>5</LanguageId>
  <LastUpdatedOn>2019-05-26T03:44:23.3021628-04:00</LastUpdatedOn>
  <Links xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Links>
  <Question>sample string 3</Question>
  <Ratings>
    <FAQRatingDto>
      <CreatedOn>2019-05-26T03:44:23.3031644-04:00</CreatedOn>
      <FAQId>3</FAQId>
      <Id>1</Id>
      <UpdateOn>2019-05-26T03:44:23.3031644-04:00</UpdateOn>
      <UserId>1</UserId>
      <Value>2</Value>
    </FAQRatingDto>
    <FAQRatingDto>
      <CreatedOn>2019-05-26T03:44:23.3031644-04:00</CreatedOn>
      <FAQId>3</FAQId>
      <Id>1</Id>
      <UpdateOn>2019-05-26T03:44:23.3031644-04:00</UpdateOn>
      <UserId>1</UserId>
      <Value>2</Value>
    </FAQRatingDto>
  </Ratings>
  <RespondingUserId>58a6c3d2-2213-4305-b4fd-6091e87153cd</RespondingUserId>
  <SubmittedOn>2019-05-26T03:44:23.3021628-04:00</SubmittedOn>
  <SubmittingUserEmail>sample string 12</SubmittingUserEmail>
  <SubmittingUserId>7c718dfc-908a-44c8-8062-b5a426835d25</SubmittingUserId>
  <SubmittingUserLanguageId>1</SubmittingUserLanguageId>
  <Title>sample string 2</Title>
  <isComplete>true</isComplete>
  <isEmailSent>true</isEmailSent>
  <isPublic>true</isPublic>
</FAQDto>

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

Response Information

Resource Description

Collection of FAQDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Question

string

None.

Answer

string

None.

LanguageId

integer

None.

SubmittedOn

date

None.

LastUpdatedOn

date

None.

EmailSentOn

date

None.

isPublic

boolean

None.

isComplete

boolean

None.

isEmailSent

boolean

None.

SubmittingUserId

globally unique identifier

None.

SubmittingUserEmail

string

None.

SubmittingUserLanguageId

integer

None.

RespondingUserId

globally unique identifier

None.

Links

Collection of string

None.

FAQCategories

Collection of FAQCategoryDto

None.

Ratings

Collection of FAQRatingDto

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Title": "sample string 2",
    "Question": "sample string 3",
    "Answer": "sample string 4",
    "LanguageId": 5,
    "SubmittedOn": "2019-05-26T03:44:23.3291703-04:00",
    "LastUpdatedOn": "2019-05-26T03:44:23.3291703-04:00",
    "EmailSentOn": "2019-05-26T03:44:23.3291703-04:00",
    "isPublic": true,
    "isComplete": true,
    "isEmailSent": true,
    "SubmittingUserId": "2b200e42-5ed8-4f21-be7d-c12600a6bf98",
    "SubmittingUserEmail": "sample string 12",
    "SubmittingUserLanguageId": 1,
    "RespondingUserId": "61ab7a89-a980-48f0-9b8a-8895173ff6b8",
    "Links": [
      "sample string 1",
      "sample string 2"
    ],
    "FAQCategories": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "IconClass": "sample string 3",
        "LanguageId": 4
      },
      {
        "Id": 1,
        "Title": "sample string 2",
        "IconClass": "sample string 3",
        "LanguageId": 4
      }
    ],
    "Ratings": [
      {
        "Id": 1,
        "CreatedOn": "2019-05-26T03:44:23.3291703-04:00",
        "UpdateOn": "2019-05-26T03:44:23.3291703-04:00",
        "Value": 2,
        "UserId": 1,
        "FAQId": 3
      },
      {
        "Id": 1,
        "CreatedOn": "2019-05-26T03:44:23.3291703-04:00",
        "UpdateOn": "2019-05-26T03:44:23.3291703-04:00",
        "Value": 2,
        "UserId": 1,
        "FAQId": 3
      }
    ]
  },
  {
    "Id": 1,
    "Title": "sample string 2",
    "Question": "sample string 3",
    "Answer": "sample string 4",
    "LanguageId": 5,
    "SubmittedOn": "2019-05-26T03:44:23.3291703-04:00",
    "LastUpdatedOn": "2019-05-26T03:44:23.3291703-04:00",
    "EmailSentOn": "2019-05-26T03:44:23.3291703-04:00",
    "isPublic": true,
    "isComplete": true,
    "isEmailSent": true,
    "SubmittingUserId": "2b200e42-5ed8-4f21-be7d-c12600a6bf98",
    "SubmittingUserEmail": "sample string 12",
    "SubmittingUserLanguageId": 1,
    "RespondingUserId": "61ab7a89-a980-48f0-9b8a-8895173ff6b8",
    "Links": [
      "sample string 1",
      "sample string 2"
    ],
    "FAQCategories": [
      {
        "Id": 1,
        "Title": "sample string 2",
        "IconClass": "sample string 3",
        "LanguageId": 4
      },
      {
        "Id": 1,
        "Title": "sample string 2",
        "IconClass": "sample string 3",
        "LanguageId": 4
      }
    ],
    "Ratings": [
      {
        "Id": 1,
        "CreatedOn": "2019-05-26T03:44:23.3291703-04:00",
        "UpdateOn": "2019-05-26T03:44:23.3291703-04:00",
        "Value": 2,
        "UserId": 1,
        "FAQId": 3
      },
      {
        "Id": 1,
        "CreatedOn": "2019-05-26T03:44:23.3291703-04:00",
        "UpdateOn": "2019-05-26T03:44:23.3291703-04:00",
        "Value": 2,
        "UserId": 1,
        "FAQId": 3
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfFAQDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <FAQDto>
    <Answer>sample string 4</Answer>
    <EmailSentOn>2019-05-26T03:44:23.3291703-04:00</EmailSentOn>
    <FAQCategories>
      <FAQCategoryDto>
        <IconClass>sample string 3</IconClass>
        <Id>1</Id>
        <LanguageId>4</LanguageId>
        <Title>sample string 2</Title>
      </FAQCategoryDto>
      <FAQCategoryDto>
        <IconClass>sample string 3</IconClass>
        <Id>1</Id>
        <LanguageId>4</LanguageId>
        <Title>sample string 2</Title>
      </FAQCategoryDto>
    </FAQCategories>
    <Id>1</Id>
    <LanguageId>5</LanguageId>
    <LastUpdatedOn>2019-05-26T03:44:23.3291703-04:00</LastUpdatedOn>
    <Links xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Links>
    <Question>sample string 3</Question>
    <Ratings>
      <FAQRatingDto>
        <CreatedOn>2019-05-26T03:44:23.3291703-04:00</CreatedOn>
        <FAQId>3</FAQId>
        <Id>1</Id>
        <UpdateOn>2019-05-26T03:44:23.3291703-04:00</UpdateOn>
        <UserId>1</UserId>
        <Value>2</Value>
      </FAQRatingDto>
      <FAQRatingDto>
        <CreatedOn>2019-05-26T03:44:23.3291703-04:00</CreatedOn>
        <FAQId>3</FAQId>
        <Id>1</Id>
        <UpdateOn>2019-05-26T03:44:23.3291703-04:00</UpdateOn>
        <UserId>1</UserId>
        <Value>2</Value>
      </FAQRatingDto>
    </Ratings>
    <RespondingUserId>61ab7a89-a980-48f0-9b8a-8895173ff6b8</RespondingUserId>
    <SubmittedOn>2019-05-26T03:44:23.3291703-04:00</SubmittedOn>
    <SubmittingUserEmail>sample string 12</SubmittingUserEmail>
    <SubmittingUserId>2b200e42-5ed8-4f21-be7d-c12600a6bf98</SubmittingUserId>
    <SubmittingUserLanguageId>1</SubmittingUserLanguageId>
    <Title>sample string 2</Title>
    <isComplete>true</isComplete>
    <isEmailSent>true</isEmailSent>
    <isPublic>true</isPublic>
  </FAQDto>
  <FAQDto>
    <Answer>sample string 4</Answer>
    <EmailSentOn>2019-05-26T03:44:23.3291703-04:00</EmailSentOn>
    <FAQCategories>
      <FAQCategoryDto>
        <IconClass>sample string 3</IconClass>
        <Id>1</Id>
        <LanguageId>4</LanguageId>
        <Title>sample string 2</Title>
      </FAQCategoryDto>
      <FAQCategoryDto>
        <IconClass>sample string 3</IconClass>
        <Id>1</Id>
        <LanguageId>4</LanguageId>
        <Title>sample string 2</Title>
      </FAQCategoryDto>
    </FAQCategories>
    <Id>1</Id>
    <LanguageId>5</LanguageId>
    <LastUpdatedOn>2019-05-26T03:44:23.3291703-04:00</LastUpdatedOn>
    <Links xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Links>
    <Question>sample string 3</Question>
    <Ratings>
      <FAQRatingDto>
        <CreatedOn>2019-05-26T03:44:23.3291703-04:00</CreatedOn>
        <FAQId>3</FAQId>
        <Id>1</Id>
        <UpdateOn>2019-05-26T03:44:23.3291703-04:00</UpdateOn>
        <UserId>1</UserId>
        <Value>2</Value>
      </FAQRatingDto>
      <FAQRatingDto>
        <CreatedOn>2019-05-26T03:44:23.3291703-04:00</CreatedOn>
        <FAQId>3</FAQId>
        <Id>1</Id>
        <UpdateOn>2019-05-26T03:44:23.3291703-04:00</UpdateOn>
        <UserId>1</UserId>
        <Value>2</Value>
      </FAQRatingDto>
    </Ratings>
    <RespondingUserId>61ab7a89-a980-48f0-9b8a-8895173ff6b8</RespondingUserId>
    <SubmittedOn>2019-05-26T03:44:23.3291703-04:00</SubmittedOn>
    <SubmittingUserEmail>sample string 12</SubmittingUserEmail>
    <SubmittingUserId>2b200e42-5ed8-4f21-be7d-c12600a6bf98</SubmittingUserId>
    <SubmittingUserLanguageId>1</SubmittingUserLanguageId>
    <Title>sample string 2</Title>
    <isComplete>true</isComplete>
    <isEmailSent>true</isEmailSent>
    <isPublic>true</isPublic>
  </FAQDto>
</ArrayOfFAQDto>