This action may lead to changes in the database

Do you want to continue?

Data Explorer

ApiSavedSearch

More

Request Information

Update a existing Saved Search.


Body Parameters:
  • SearchId
  • UserId
  • ClientId
  • SearchName
  • SearchParameters
  • SendEmailUpdate
  • IsEmailSent
  • DateCreated
  • DateLastChanged
  • DateLastViewed
  • ScheduledForAction
  • ShowToClient

Body Parameters

ApiSavedSearch
Name Description Type Additional information
SearchId

integer

None.

UserId

string

None.

ClientId

integer

None.

SearchName

string

None.

SearchParameters

string

None.

SendEmailUpdate

boolean

None.

IsEmailSent

boolean

None.

DateCreated

date

None.

DateLastChanged

date

None.

DateLastViewed

date

None.

ScheduledForAction

boolean

None.

ShowToClient

boolean

None.

IsActive

boolean

None.

Response

× The request was made Successfully! Check the result!.
× Error Something happen, the Api doesn't have a response.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"Time": "sample string 1",
"Error": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"ErrorMessage": "sample string 2",
"Status": "sample string 3",
"Server": "sample string 4",
"Count": 1,
"FavoriteCounts": {
"CommCount": 1,
"PlanCount": 2,
"SpecCount": 3
},
"FavoriteFacets": {
"Cities": [
{
"MarketId": 1,
"Count": 1,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Download File

Code Generator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
Assemblies required:
* System.Net.Http.Formatting
* System.Net.Http
* System.Threading.Tasks
* System.Net.Http.Headers
*/
public async Task<string> PostMethod()
{
var client = new HttpClient();
ApiSavedSearch apiSavedSearch = BuildApiSavedSearch();
HttpResponseMessage response = await client.PostAsJsonAsync("https://duda-api.newhomesource.com/api/v2/SavedSearches/Update", apiSavedSearch);
if (response.IsSuccessStatusCode)
{
return response.Content.ReadAsStringAsync().Result;
} else {
return string.Empty;
}
}
public ApiSavedSearch BuildApiSavedSearch()
{
return new ApiSavedSearch
{
IsEmailSent = false,
SendEmailUpdate = false,
ShowToClient = false,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Response Information

Treu if the saved search was updated, false if an error happened trying to make the update

ApiResultModelOfBoolean
Name Description Type Additional information
Time

string

None.

Error

Exception

None.

ErrorMessage

string

None.

Status

string

None.

Server

string

None.

Count

integer

None.

FavoriteCounts

ApiFavoriteCounts

None.

FavoriteFacets

ApiFavoriteFacets

None.

Result

boolean

None.

VerboseLogger

List of IVerboseLogger

None.