Endpoint to add a list of capabilities to an agent

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Capabilities, REST API
    • None
    • 0
    • 1

      Issue Summary

      This is reproducible on Data Center:

      Currently, there's no endpoint available to add multiple capabilities to a remote agent with just one REST API call.

      Suggestion

      Add a REST endpoint that allows for multiple capabilities to be added (or edited) to an agent.

      Workaround

      Run multiple calls using the API below, each one containing one of the capabilities to be added:

      curl -X POST -H "Content-Type: application/json" -u "ADMIN_USER":"ADMIN_PASSWORD" -d '{"key": "CAPABILITY_KEY", "value": "CAPABILITY_VALUE"}'  <BAMBOO_URL>/rest/api/latest/agent/<AGENT_ID>/capability
      REST API documentation

       

            Assignee:
            Unassigned
            Reporter:
            Eduardo Collaziol
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: