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 URLhttp://localhost:8001
- AuthAPI key in header Kong-Admin-Token
Path parameters
ConsumerIdForNestedEntities, string required
Consumer ID for nested entities
workspace, string required
Example:team-payments
The name of the workspace
Request body
Basic Auth Without Parents required
consumer, object nullable
created_at, integer nullable
Unix epoch when the resource was created.
id, string nullable
A string representing a UUID (universally unique identifier).
password, string required
tags, string[] nullable
A set of strings representing tags.
username, string required
Example request
{
"id": "b2f34145-0343-41a4-9602-4c69dec2f269",
"password": "hashedsoopersecretvalue",
"username": "darius"
}Response
Successfully created Basic-auth credential
Basic Auth required
consumer, object nullable
created_at, integer nullable
Unix epoch when the resource was created.
id, string nullable
A string representing a UUID (universally unique identifier).
password, string required
tags, string[] nullable
A set of strings representing tags.
username, string required
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
passwordbecame not write-only for the status - info
the request required property
passwordbecame not write-only
- warning
- info
endpoint added
- info