POST api/AdminSettings

Request Information

URI Parameters

None.

Body Parameters

AdminSettingsVue
NameDescriptionTypeAdditional information
AdminSettings

AdminSettingsVM

None.

SearchFilterMainOptions

SearchFilterMainOptionsVM

None.

Request Formats

application/json, text/json

Sample:
{
  "adminSettings": {
    "id": 1,
    "apiurl": "sample string 2",
    "wsToken": "sample string 3",
    "apiToken": "sample string 4",
    "courseURL": "sample string 5",
    "courseInstanceSerchURL": "sample string 6",
    "courseInstanceDetailURL": "sample string 7",
    "contactURL": "sample string 8",
    "startDateMax": 9
  },
  "searchFilterMainOptions": {
    "id": 1,
    "showStudyLevelOptions": true,
    "studyLevelSectionOrder": 3,
    "showStudyAreaOptions": true,
    "studyAreaSectionOrder": 5,
    "showModeOfDeliveryOptions": true,
    "modeOfDeliverySectionOrder": 7,
    "showLocations": true,
    "locationSectionOrder": 9,
    "showFundingOptions": true,
    "fundingSectionOptions": 11,
    "noOfDefaultBlocks": 12,
    "qualificationsPerBlock": 13
  }
}

text/html

Sample:
{"adminSettings":{"id":1,"apiurl":"sample string 2","wsToken":"sample string 3","apiToken":"sample string 4","courseURL":"sample string 5","courseInstanceSerchURL":"sample string 6","courseInstanceDetailURL":"sample string 7","contactURL":"sample string 8","startDateMax":9},"searchFilterMainOptions":{"id":1,"showStudyLevelOptions":true,"studyLevelSectionOrder":3,"showStudyAreaOptions":true,"studyAreaSectionOrder":5,"showModeOfDeliveryOptions":true,"modeOfDeliverySectionOrder":7,"showLocations":true,"locationSectionOrder":9,"showFundingOptions":true,"fundingSectionOptions":11,"noOfDefaultBlocks":12,"qualificationsPerBlock":13}}

application/xml, text/xml

Sample:
<AdminSettingsVue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StategixWordpressClassManger.ASP_WebAPI.Vues">
  <AdminSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/StategixWordpressClassManger.ASP_WebAPI.ViewModels">
    <d2p1:APIToken>sample string 4</d2p1:APIToken>
    <d2p1:APIURL>sample string 2</d2p1:APIURL>
    <d2p1:ContactURL>sample string 8</d2p1:ContactURL>
    <d2p1:CourseInstanceDetailURL>sample string 7</d2p1:CourseInstanceDetailURL>
    <d2p1:CourseInstanceSerchURL>sample string 6</d2p1:CourseInstanceSerchURL>
    <d2p1:CourseURL>sample string 5</d2p1:CourseURL>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:StartDateMax>9</d2p1:StartDateMax>
    <d2p1:WSToken>sample string 3</d2p1:WSToken>
  </AdminSettings>
  <SearchFilterMainOptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/StategixWordpressClassManger.ASP_WebAPI.ViewModels">
    <d2p1:FundingSectionOptions>11</d2p1:FundingSectionOptions>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:LocationSectionOrder>9</d2p1:LocationSectionOrder>
    <d2p1:ModeOfDeliverySectionOrder>7</d2p1:ModeOfDeliverySectionOrder>
    <d2p1:NoOfDefaultBlocks>12</d2p1:NoOfDefaultBlocks>
    <d2p1:QualificationsPerBlock>13</d2p1:QualificationsPerBlock>
    <d2p1:ShowFundingOptions>true</d2p1:ShowFundingOptions>
    <d2p1:ShowLocations>true</d2p1:ShowLocations>
    <d2p1:ShowModeOfDeliveryOptions>true</d2p1:ShowModeOfDeliveryOptions>
    <d2p1:ShowStudyAreaOptions>true</d2p1:ShowStudyAreaOptions>
    <d2p1:ShowStudyLevelOptions>true</d2p1:ShowStudyLevelOptions>
    <d2p1:StudyAreaSectionOrder>5</d2p1:StudyAreaSectionOrder>
    <d2p1:StudyLevelSectionOrder>3</d2p1:StudyLevelSectionOrder>
  </SearchFilterMainOptions>
</AdminSettingsVue>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.