Tested on version 0.0.5.
This is how SDK tries to get it:
|
business_unit_id = asset['businessUnit']['id'] |
And here's the returned object.
[
{
'_cursor': '{"id":"<id>"}',
'id': '<id>',
'name': 'test ',
'createdAt':
'2023-06-20T08:28:03Z',
'ctx': {
'asset': '<id>',
'businessUnits': ['<id>'],
'products': ['<id>']
}
}
]
Please fix getting business unit and add user_id.
P.S.
This assumes this will return only one asset. Please validate if there is in fact only one object returned.
Tested on version
0.0.5.This is how SDK tries to get it:
finite-state-sdk-python/finite_state_sdk/__init__.py
Line 295 in a046c31
And here's the returned object.
Please fix getting business unit and add user_id.
P.S.
finite-state-sdk-python/finite_state_sdk/__init__.py
Line 280 in a046c31
This assumes this will return only one asset. Please validate if there is in fact only one object returned.