Update a Credential in the Credential Store

Updates a credential in the domain credential store.

REST Request

PUT /idaas/platform/admin/v1/credential

Request Body

Media Types: application/json

The request body contains the details of the update request:

Attribute Description Required
"credential" Updated password for the key in the keystore. Yes
"key" Name of the key that you want to modify. The key must exist. Yes
"map" Name of the map (folder) that you want to modify. Yes
"username" Username for the key in the keystore. Yes

Response Body

Media Types: application/json

The response body returns the status of the update operation, including:

Attribute Description
"ERROR_CODE" If "STATUS" is set to "Failed", provides the error code.
"ERROR_MSG" If "STATUS" is set to "Failed", provides the contents of the error message.
"STATUS" Status of operation. For example, "Succeeded" or "Failed".

cURL Example

The following example shows how to update a credential in the credential store by submitting a PUT request on the REST resource using cURL. For more information, see "cURL Access".

curl -i -X PUT -u username:password --data @updatecred.json -H Content-Type:application/json http://myhost:7001/idaas/patform/admin/v1/credential

Example of Request Body

The following shows an example of the request body in JSON format.

{
    "username" : "username",
    "credential" : "myNewPwd",
    "key" : "mykey",
    "map" : "oracle.wsm.security"
}

Example of Response Header

The following shows an example of the response header. For more about the HTTP status codes, see "Status Codes."

HTTP/1.1 200 OK

Example of Response Body

The following shows an example of the response body in JSON format.

{
    "STATUS": "Succeeded"
}