Update the default search name for the specified search type
/apiplatform/administration/v1/preferences/user/searches/{type}/default
Updates the default search name for the specified search type
All authenticated users can access this resource.
Request
- application/json
-
type: string
Specifies the search type, valid values are:
api
,application
,gateway
,service_account
androle
.
object
-
defaultSearchName(optional):
string
Default Value:
false
The name of the default search. Empty string if default search not set.
Response
- application/json
204 Response
403 Response
object
-
detail(optional):
string
Detailed error message
-
errorCode(optional):
string
Application specific error code
-
errorDetails(optional):
array errorDetails
additional errors
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error
-
status(optional):
string
HTTP status code
-
title:
string
Summary error message
-
type:
string
Error type
500 Response
object
-
detail(optional):
string
Detailed error message
-
errorCode(optional):
string
Application specific error code
-
errorDetails(optional):
array errorDetails
additional errors
-
errorPath(optional):
string
-
instance(optional):
string
URI to the link that provides more detail about the error
-
status(optional):
string
HTTP status code
-
title:
string
Summary error message
-
type:
string
Error type
Examples
The following example shows how to update the name of the default saved search for a resource type by submitting a PUT request on the REST resource using cURL. For more information about cURL, see Use cURL.
curl -i -X PUT -u apicsadmin:password -d @search-name.json https://example.com/apiplatform/administration/v1/preferences/user/searches/{type}/default
Where {type}
is a resource type, like api
, application
, gateway
, etc.
Example of Request Body
The following example shows the contents of the request body to change the name of the default saved search in JSON format, included with the request above in a file named searche-name.json
.
{ "defaultSearchName":"weather forecast APIs" }
Example of Response Headers
The following shows an example of the response headers.
HTTP/1.1 204 OK Server: Oracle-Traffic-Director/12.2.1.2.0 Date: Thu, 05 Jan 2017 18:32:20 GMT Content-type: application/json X-oracle-dms-ecid: UShgJ1E3000000000 X-oracle-dms-rid: 0:1 Via: 1.1 otd_opc Proxy-agent: Oracle-Traffic-Director/12.2.1.2.0 Transfer-encoding: chunked