Create a new credential pair
post
/design/resources/services/token/unt/
The credential pair consists of a username and a secret. Use the application/x-www-form-urlencoded content type to create a credential with a text-based secret or use the multipart/form-data content type to create 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
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 created credential pair