We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45f236a + b286aa8 commit eca51b8Copy full SHA for eca51b8
sdcclient/_client.py
@@ -1097,3 +1097,19 @@ def switch_user_team(self, new_team_id):
1097
else:
1098
return [True, None]
1099
1100
+ def get_agents_config(self):
1101
+ res = requests.get(self.url + '/api/agents/config', headers=self.hdrs)
1102
+ if not self.__checkResponse(res):
1103
+ return [False, self.lasterr]
1104
+ data = res.json()
1105
+ return [True, data]
1106
+
1107
+ def set_agents_config(self, config):
1108
+ res = requests.put(self.url + '/api/agents/config', headers=self.hdrs, data=json.dumps(config))
1109
1110
1111
+ return [True, res.json()]
1112
1113
+ def clear_agents_config(self):
1114
+ data = {'files' : []}
1115
+ self.set_agents_config(data)
0 commit comments