PUT v1/shows/search/advanced/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
SavedShowSearchResource| Name | Description | Type | Additional information |
|---|---|---|---|
| SavedShowSearch | SavedShowSearch |
None. |
Request Formats
application/json, text/json
Sample:
{
"savedShowSearch": {
"id": 1,
"name": "sample string 2",
"query": {
"sortOptions": [
{
"descending": true,
"field": "showId"
},
{
"descending": true,
"field": "showId"
}
],
"groups": [
{
"orAnd": "and",
"filters": [
{
"operator": "equals",
"field": "showId",
"showField": 1,
"searchValue": "sample string 1"
},
{
"operator": "equals",
"field": "showId",
"showField": 1,
"searchValue": "sample string 1"
}
]
},
{
"orAnd": "and",
"filters": [
{
"operator": "equals",
"field": "showId",
"showField": 1,
"searchValue": "sample string 1"
},
{
"operator": "equals",
"field": "showId",
"showField": 1,
"searchValue": "sample string 1"
}
]
}
]
},
"results": [
1,
2
]
}
}
application/xml, text/xml
Sample:
<SavedShowSearchResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CablecastAPI.Controllers.api.v1">
<SavedShowSearch>
<Id>1</Id>
<Name>sample string 2</Name>
<Query xmlns:d3p1="http://schemas.datacontract.org/2004/07/TRMS.Cablecast.Models">
<d3p1:Groups>
<d3p1:ShowSearchGroup>
<d3p1:Filters>
<d3p1:ShowSearchFilter>
<d3p1:Field>ShowId</d3p1:Field>
<d3p1:Operator>Equals</d3p1:Operator>
<d3p1:SearchValue>sample string 1</d3p1:SearchValue>
<d3p1:ShowField>1</d3p1:ShowField>
</d3p1:ShowSearchFilter>
<d3p1:ShowSearchFilter>
<d3p1:Field>ShowId</d3p1:Field>
<d3p1:Operator>Equals</d3p1:Operator>
<d3p1:SearchValue>sample string 1</d3p1:SearchValue>
<d3p1:ShowField>1</d3p1:ShowField>
</d3p1:ShowSearchFilter>
</d3p1:Filters>
<d3p1:OrAnd>And</d3p1:OrAnd>
</d3p1:ShowSearchGroup>
<d3p1:ShowSearchGroup>
<d3p1:Filters>
<d3p1:ShowSearchFilter>
<d3p1:Field>ShowId</d3p1:Field>
<d3p1:Operator>Equals</d3p1:Operator>
<d3p1:SearchValue>sample string 1</d3p1:SearchValue>
<d3p1:ShowField>1</d3p1:ShowField>
</d3p1:ShowSearchFilter>
<d3p1:ShowSearchFilter>
<d3p1:Field>ShowId</d3p1:Field>
<d3p1:Operator>Equals</d3p1:Operator>
<d3p1:SearchValue>sample string 1</d3p1:SearchValue>
<d3p1:ShowField>1</d3p1:ShowField>
</d3p1:ShowSearchFilter>
</d3p1:Filters>
<d3p1:OrAnd>And</d3p1:OrAnd>
</d3p1:ShowSearchGroup>
</d3p1:Groups>
<d3p1:SortOptions>
<d3p1:ShowSearchSortingOption>
<d3p1:Descending>true</d3p1:Descending>
<d3p1:Field>ShowId</d3p1:Field>
</d3p1:ShowSearchSortingOption>
<d3p1:ShowSearchSortingOption>
<d3p1:Descending>true</d3p1:Descending>
<d3p1:Field>ShowId</d3p1:Field>
</d3p1:ShowSearchSortingOption>
</d3p1:SortOptions>
</Query>
<Results xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</Results>
</SavedShowSearch>
</SavedShowSearchResource>
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |