Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2525

[RFE] Allow API PATCHing on existing credentials to update single input variables

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      1. What is the nature and description of the request?
        Currently, when performing an API PATCH on an existing credential to update a single `inputs` value, the other values are removed and left blank. For example, running the following curl command updates the host correctly, but leaves other fields like `username` and `password` blank:
        
        # curl -kv --user $USERNAME:$PASSWORD https://$AAP_URL/api/v2/credentials/11/ -H "Content-Type: application/json" -X PATCH -d '{"inputs": {"host": "https://test2.com"}}'
      1. Why does the customer need this? (List the business requirements here)
        Existing behavior can lead to a bad user experience.
        
      1. How would you like to achieve this? (List the functional requirements here)
        Unsure how exactly to implement this but having the PATCH only update the changed input is desired.
      1. List any affected known dependencies: Doc, UI etc..
        API

              dysilva Dylan Silva
              rhn-support-mdinwood Matthew Dinwoodie
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: