Modify an existing credential pair
put
/design/resources/services/token/unt/{credentialId}
Use the application/x-www-form-urlencoded content type to update a credential with a text-based secret or use the multipart/form-data content type to update a credential, such as a keystore or a certificate, with a binary secret.
Request
Supported Media Types
- application/x-www-form-urlencoded
- multipart/form-data
Path Parameters
-
credentialId(required): string
ID of the credential to be updated
Query Parameters
-
appName(required): string
Application name
-
appVer(required): string
Application version number
Form Parameters
-
token: string
Secret part of the credential pair
-
userName(required): string
Public part of the credential pair
Secret binary part of the credential pair
Root Schema : InputStream
Type:
object
Response
Supported Media Types
- application/json
200 Response
JSON map with the ID of the updated credential pair
401 Response
Credential with the given ID does not exist, or the username parameter is not present, or the application is not allowed to access that credential