POST {name}/config/facet/order/{category}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

string

Required

category

string

Required

Body Parameters

Collection of Facet
NameDescriptionTypeAdditional information
name

string

None.

title

string

None.

count

integer

None.

values

Collection of FacetValue

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "name": "sample string 1",
    "title": "sample string 2",
    "count": 3,
    "values": [
      {
        "value": "sample string 1",
        "path": "sample string 2",
        "count": 3
      },
      {
        "value": "sample string 1",
        "path": "sample string 2",
        "count": 3
      }
    ]
  },
  {
    "name": "sample string 1",
    "title": "sample string 2",
    "count": 3,
    "values": [
      {
        "value": "sample string 1",
        "path": "sample string 2",
        "count": 3
      },
      {
        "value": "sample string 1",
        "path": "sample string 2",
        "count": 3
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfFacet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HNI.Textiles.Core.Models">
  <Facet>
    <count>3</count>
    <name>sample string 1</name>
    <title>sample string 2</title>
    <values>
      <FacetValue>
        <count>3</count>
        <path>sample string 2</path>
        <value>sample string 1</value>
      </FacetValue>
      <FacetValue>
        <count>3</count>
        <path>sample string 2</path>
        <value>sample string 1</value>
      </FacetValue>
    </values>
  </Facet>
  <Facet>
    <count>3</count>
    <name>sample string 1</name>
    <title>sample string 2</title>
    <values>
      <FacetValue>
        <count>3</count>
        <path>sample string 2</path>
        <value>sample string 1</value>
      </FacetValue>
      <FacetValue>
        <count>3</count>
        <path>sample string 2</path>
        <value>sample string 1</value>
      </FacetValue>
    </values>
  </Facet>
</ArrayOfFacet>

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 'List`1'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.