# Susemanager API addOrRemoveSystems

**URL:** <https://forums.suse.com/t/susemanager-api-addorremovesystems/35368>\
**Category:** SUSE Multi Linux Manager\
**Created:** [November 10, 2020, 1:51pm UTC](https://forums.suse.com/t/susemanager-api-addorremovesystems/35368 "2020-11-10T13:51:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeroen1](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jeroen1](https://forums.suse.com/u/Jeroen1)\
**Post date:** [November 10, 2020, 1:51pm UTC](https://forums.suse.com/t/susemanager-api-addorremovesystems/35368/1 "2020-11-10T13:51:54Z")

</div>

Hi,  
I am trying to use the API of susemanager, with the use of python 2. I can make a connection. i can list groups, see what servers are in the group, delete and create groups. Everthing is fine so far.  
But now i want to add servers to the systemgroup. The syntax in de api document is:  
Parameters

- string sessionKey
- string systemGroupName
- array:  
\* int - serverId
- boolean add - True to add to the group, False to remove.

My syntax in python is: client.systemgroup.addOrRemoveSystem(key, “Groupname”, “‘id’: 1000000”, ‘True’)  
but i getting the fault -1 return code and the error Could not find translator for class java.lang.string to interface java.util.list  
I know that the serverid must be done in a list(array) but it should not make a difference to directly put it in like i did.  
The obviously must be something wrong with the syntax. Anyone can help me out?

---

<div class="post-metadata">

**Author:** ![sanchez-higuera](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sanchez-higuera](https://forums.suse.com/u/sanchez-higuera)\
**Post date:** [January 7, 2025, 12:30pm UTC](https://forums.suse.com/t/susemanager-api-addorremovesystems/35368/2 "2025-01-07T12:30:45Z")

</div>

The name of the field is “serverIds” not “id”, and also it should be a list
