Update the default search name for the specified search type

put

/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

Supported Media Types
Path Parameters
  • Specifies the search type, valid values are: api, application, gateway, service_account and role.
Body ()
Root Schema : UserDefaultSearchName
Type: object
Show Source
Back to Top

Response

Supported Media Types

204 Response

Preferences successfully updated.

403 Response

Forbidden.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source

500 Response

Unexpected error.
Body ()
Root Schema : Error
Type: object
Show Source
Nested Schema : errorDetails
Type: array
additional errors
Show Source
Back to Top

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
Back to Top