Deletion of computer from group via API

svenschott
New Contributor

Hi guys

I've looked through the documentation but I can't find how to do this. I can create groups and add computers to them and delete groups, but I can't for the life of me find how to remove a computer from a group. Does anyone know what the XML should look like to do this?

Sven Schott

3 REPLIES 3

svenschott
New Contributor

Never mind. I just figured it out. I'll hand in my geek badge at the door.

darms21
New Contributor

Would be ideal if you'd answer your question so others that may come across this thread will benefit.

rcuza
New Contributor

In version 8.7, it appears the list of computers inside of <computers>...</computers> needs to be complete. This means that you cannot add a single computer to a static computer group by posting a XML file with just one computer entry inside the <computers>...</computers> tags.

How I tested:

  1. Use POST to create a computer group with two computers in it.
  2. Edit text file and remove one computer from the computers tag.
  3. Use PUT with the same URL as above.

The result is that the computer group only has one computer in it.