How can we use custom apikey instead of auto generate by kong for consumers in key-authentication

How can we use a custom key instead of auto-generated by kong for Consumers credentials using a key-authentication plugin?
Kong version 0.13.1

curl -X POST http://kong:8001/consumers/{consumer}/key-auth --data 'key=yourValueHere' 

Should do the trick.

1 Like