Basic-auth credentials
Create a new Basic-auth credential associated with a Consumer
Changed onCreate a new Basic-auth credential associated with a Consumer
post/{workspace}/consumers/{ConsumerIdForNestedEntities}/basic-auth
Request
- Base URL: http://localhost:8001
- URL: http://localhost:8001/{workspace}/consumers/{ConsumerIdForNestedEntities}/basic-auth
- Auth: API key in header Kong-Admin-Token
Path parameters
ConsumerIdForNestedEntitiesstring required
Consumer ID for nested entities
workspacestring required
Example:team-payments
The name of the workspace
Request body
Example request
{
"id": "b2f34145-0343-41a4-9602-4c69dec2f269",
"password": "hashedsoopersecretvalue",
"username": "darius"
}Response
Successfully created Basic-auth credential
Example response
{
"consumer": {
"id": "84a73fb8-50fc-44a7-a4d5-aa17728ee83f"
},
"id": "b2f34145-0343-41a4-9602-4c69dec2f269",
"password": "hashedsoopersecretvalue",
"username": "darius"
}Changes
- warning
the response required property
became not write-only for the status - info
the request required property
became not write-only
- warning
- info
endpoint added
- info