-
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