POST api/CompanyMetaForm/Update

Request Information

URI Parameters

None.

Body Parameters

CreateCompanyMetaFormPostVm
NameDescriptionTypeAdditional information
Id

integer

None.

name

string

None.

PageId

integer

None.

FormId

integer

None.

CompanyCredentialId

integer

None.

CompanyCredentialName

string

None.

questions

Collection of MetaFormKeyValueVm

None.

CampaignId

integer

None.

ProjectId

integer

None.

UserId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "name": "sample string 2",
  "PageId": 1,
  "FormId": 1,
  "CompanyCredentialId": 1,
  "CompanyCredentialName": "sample string 3",
  "questions": [
    {
      "Id": 1,
      "CRMKey": "sample string 2",
      "CRMLabel": "sample string 3",
      "FBKey": "sample string 4",
      "FBLabel": "sample string 5",
      "Type": "sample string 6"
    },
    {
      "Id": 1,
      "CRMKey": "sample string 2",
      "CRMLabel": "sample string 3",
      "FBKey": "sample string 4",
      "FBLabel": "sample string 5",
      "Type": "sample string 6"
    }
  ],
  "CampaignId": 1,
  "ProjectId": 1,
  "UserId": 1
}

application/xml, text/xml

Sample:
<CreateCompanyMetaFormPostVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Services.Lead">
  <CampaignId>1</CampaignId>
  <CompanyCredentialId>1</CompanyCredentialId>
  <CompanyCredentialName>sample string 3</CompanyCredentialName>
  <FormId>1</FormId>
  <Id>1</Id>
  <PageId>1</PageId>
  <ProjectId>1</ProjectId>
  <UserId>1</UserId>
  <name>sample string 2</name>
  <questions xmlns:d2p1="http://schemas.datacontract.org/2004/07/BrokerServer.Models.LeadModels">
    <d2p1:MetaFormKeyValueVm>
      <d2p1:CRMKey>sample string 2</d2p1:CRMKey>
      <d2p1:CRMLabel>sample string 3</d2p1:CRMLabel>
      <d2p1:FBKey>sample string 4</d2p1:FBKey>
      <d2p1:FBLabel>sample string 5</d2p1:FBLabel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Type>sample string 6</d2p1:Type>
    </d2p1:MetaFormKeyValueVm>
    <d2p1:MetaFormKeyValueVm>
      <d2p1:CRMKey>sample string 2</d2p1:CRMKey>
      <d2p1:CRMLabel>sample string 3</d2p1:CRMLabel>
      <d2p1:FBKey>sample string 4</d2p1:FBKey>
      <d2p1:FBLabel>sample string 5</d2p1:FBLabel>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Type>sample string 6</d2p1:Type>
    </d2p1:MetaFormKeyValueVm>
  </questions>
</CreateCompanyMetaFormPostVm>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.