Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New call for deleting multiple agents of a group #259

Merged
merged 1 commit into from
Dec 23, 2018

Conversation

druizz90
Copy link
Contributor

Hi team,

This PR is for issue #258. We added a new call to insert a list of agents to a group in PR #256. This call is for removing a list of agents from a group:

curl -u foo:bar -X DELETE -H "Content-Type:application/json" -d '{"ids":["001","002"]}' "http://localhost:55000/agents/group/dmz?pretty"
{
   "error": 0,
   "data": {
      "msg": "All selected agents were removed to group dmz",
      "affected_agents": [
         "001",
         "002"
      ]
   }
}
curl -u foo:bar -X DELETE -H "Content-Type:application/json" -d '{"ids":["001","002"]}' "http://localhost:55000/agents/group/dmzz?pretty"
{
   "error": 1710,
   "message": "The group does not exist"
}

Best regards,

Demetrio.

@druizz90 druizz90 self-assigned this Dec 21, 2018
@druizz90 druizz90 changed the title New call for deleting multiple agents of a group was added. New call for deleting multiple agents of a group Dec 21, 2018
@jesuslinares jesuslinares added this to the 51th week sprint milestone Dec 23, 2018
@jesuslinares jesuslinares merged commit 191c736 into 3.8 Dec 23, 2018
@jesuslinares jesuslinares deleted the dev-3.8-delete-multiple-agents-group branch December 23, 2018 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants