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.
1 parent a2e5995 commit 9f6721fCopy full SHA for 9f6721f
sdk/diffgram/schema/attribute.py
@@ -27,7 +27,7 @@ def new(self, schema):
27
self.project.handle_errors(response)
28
data = response.json()
29
30
- return data
+ return data['attribute_template_group']
31
32
def update(self,
33
attribute,
@@ -40,7 +40,7 @@ def update(self,
40
):
41
url = f'/api/v1/project/{self.project.project_string_id}/attribute/group/update'
42
payload = {
43
- "group_id": attribute['attribute_template_group']['id'],
+ "group_id": attribute['id'],
44
"mode": "UPDATE",
45
"prompt": prompt,
46
"name": name,
0 commit comments