title: Vault error while writing
body: <p>I wanted to test Spring Cloud Vault configuration.</p>
  
  <p>I installed a Vault server locally and when i try to <code>write</code> some key-values its failing and asking me to use <code>vault kv put</code> command.</p>
  
  <p>While the example of Spring Cloud Config <a href="https://spring.io/blog/2016/06/24/managing-secrets-with-vault" rel="noreferrer">in this link</a> shows the usage of vault write command</p>
  
  <p>This is the error i get is</p>
  
  <pre><code>$ vault write secret/my-app foo=bar
  Error writing data to secret/my-app: Error making API request.
  
  URL: PUT http://127.0.0.1:8200/v1/secret/my-app
  Code: 404. Errors:
  
  
  WARNING! The following warnings were returned from Vault:
  
    * Invalid path for a versioned K/V secrets engine. See the API docs for the
    appropriate API endpoints to use. If using the Vault CLI, use 'vault kv put'
    for this operation.
  </code></pre>