This action may lead to changes in the database
Do you want to continue?
Data Explorer
Request Information
Update a existing Saved Search.
Body Parameters:
- SearchId
- UserId
- ClientId
- SearchName
- SearchParameters
- SendEmailUpdate
- IsEmailSent
- DateCreated
- DateLastChanged
- DateLastViewed
- ScheduledForAction
- ShowToClient
Body Parameters
ApiSavedSearchName | 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
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,
Response Information
Treu if the saved search was updated, false if an error happened trying to make the update
ApiResultModelOfBooleanName | 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. |
POST
api/v2/SavedSearches/Update