POST classroomAPI/Form/submitForm

Request Information

URI Parameters

None.

Body Parameters

FormClientResponse
NameDescriptionTypeAdditional information
FormResponseID

globally unique identifier

None.

FormID_FK

globally unique identifier

None.

FormSubmittedBy

FormUser

None.

FormValues

Collection of FormValue

None.

Request Formats

application/json, text/json

Sample:
{
  "FormResponseID": "00000000-0000-0000-0000-000000000000",
  "FormID_FK": "0ca39bfd-2b83-4413-ae3a-352d7789a6c7",
  "FormSubmittedBy": {
    "Title": "sample string 1",
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Company": "sample string 4",
    "Email": "sample string 5",
    "TelephoneCountryCode": "sample string 6",
    "Telephone": "sample string 7"
  },
  "FormValues": [
    {
      "FormKey": "16cb26cd-26cc-488e-88b4-5ac7816d7559",
      "FormValue": "sample string 2"
    },
    {
      "FormKey": "16cb26cd-26cc-488e-88b4-5ac7816d7559",
      "FormValue": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<FormClientResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Classroom.ClassroomBLL">
  <FormID_FK>0ca39bfd-2b83-4413-ae3a-352d7789a6c7</FormID_FK>
  <FormSubmittedBy>
    <Company>sample string 4</Company>
    <Email>sample string 5</Email>
    <FirstName>sample string 2</FirstName>
    <LastName>sample string 3</LastName>
    <Telephone>sample string 7</Telephone>
    <TelephoneCountryCode>sample string 6</TelephoneCountryCode>
    <Title>sample string 1</Title>
  </FormSubmittedBy>
  <FormValues>
    <FormValue>
      <FormKey>16cb26cd-26cc-488e-88b4-5ac7816d7559</FormKey>
      <FormValue>sample string 2</FormValue>
    </FormValue>
    <FormValue>
      <FormKey>16cb26cd-26cc-488e-88b4-5ac7816d7559</FormKey>
      <FormValue>sample string 2</FormValue>
    </FormValue>
  </FormValues>
</FormClientResponse>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

FormSubmitConfirmation
NameDescriptionTypeAdditional information
success

boolean

None.

StatusCode

integer

None.

ErrorString

string

None.

ResponseString

string

None.

ClientResponse

FormClientResponse

None.

UsersSaved

integer

None.

FormResponsesSaved

integer

None.

AdditionalFormValuesSaved

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "StatusCode": 2,
  "ErrorString": "sample string 3",
  "ResponseString": "sample string 4",
  "ClientResponse": {
    "FormResponseID": "00000000-0000-0000-0000-000000000000",
    "FormID_FK": "a54c299d-b1f1-4883-8fcb-ee9375fd7fd3",
    "FormSubmittedBy": {
      "Title": "sample string 1",
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "Company": "sample string 4",
      "Email": "sample string 5",
      "TelephoneCountryCode": "sample string 6",
      "Telephone": "sample string 7"
    },
    "FormValues": [
      {
        "FormKey": "f8e99fcb-043e-4690-9f49-41b0996187d0",
        "FormValue": "sample string 2"
      },
      {
        "FormKey": "f8e99fcb-043e-4690-9f49-41b0996187d0",
        "FormValue": "sample string 2"
      }
    ]
  },
  "UsersSaved": 5,
  "FormResponsesSaved": 6,
  "AdditionalFormValuesSaved": 7
}

application/xml, text/xml

Sample:
<FormSubmitConfirmation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Classroom.ClassroomBLL">
  <AdditionalFormValuesSaved>7</AdditionalFormValuesSaved>
  <ClientResponse>
    <FormID_FK>a54c299d-b1f1-4883-8fcb-ee9375fd7fd3</FormID_FK>
    <FormSubmittedBy>
      <Company>sample string 4</Company>
      <Email>sample string 5</Email>
      <FirstName>sample string 2</FirstName>
      <LastName>sample string 3</LastName>
      <Telephone>sample string 7</Telephone>
      <TelephoneCountryCode>sample string 6</TelephoneCountryCode>
      <Title>sample string 1</Title>
    </FormSubmittedBy>
    <FormValues>
      <FormValue>
        <FormKey>f8e99fcb-043e-4690-9f49-41b0996187d0</FormKey>
        <FormValue>sample string 2</FormValue>
      </FormValue>
      <FormValue>
        <FormKey>f8e99fcb-043e-4690-9f49-41b0996187d0</FormKey>
        <FormValue>sample string 2</FormValue>
      </FormValue>
    </FormValues>
  </ClientResponse>
  <ErrorString>sample string 3</ErrorString>
  <FormResponsesSaved>6</FormResponsesSaved>
  <ResponseString>sample string 4</ResponseString>
  <StatusCode>2</StatusCode>
  <UsersSaved>5</UsersSaved>
  <success>true</success>
</FormSubmitConfirmation>