# Using cattle python API client

**URL:** <https://forums.suse.com/t/using-cattle-python-api-client/4497>\
**Category:** General\
**Created:** [October 31, 2016, 1:25pm UTC](https://forums.suse.com/t/using-cattle-python-api-client/4497 "2016-10-31T13:25:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brutus333](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@brutus333](https://forums.suse.com/u/brutus333)\
**Post date:** [October 31, 2016, 1:25pm UTC](https://forums.suse.com/t/using-cattle-python-api-client/4497/1 "2016-10-31T13:25:00Z")

</div>

Hi all!  
I’m trying to use cattle python client to update the configuration of the load balancers.  
I succeeded to do some enumeration stuff, however I’m stuck in trying to use the loadBalancerService-setserviceLinks or loadBalancerService-addserviceLinks. When trying to call cattle client with something as simple as that:  
`cattle loadBalancerService-setservicelinks --serviceLinks "[{ 'serviceId':'1s940' }]" --id 1s1069`  
I’m gettting:  
`Error : {'status': 422, 'code': u'MissingRequired', 'links': {}, 'detail': None, 'actions': {}, 'fieldName': u'serviceId', 'message': None, 'type': u'error', 'id': u'46c66b7b-2a61-4832-bc75-f3c945324956'}`

Not sure what I’m doing wrong. I’ve tried all combinations I was capable of with no success.

Please advice.  
Virgil
