Wrong Data In GetActivityTypes API Response
Is anyone seeing incorrect data in the marketo rest API. For example when I call the "Get Activity Types" method. I receive a response back which contains this record:
{'name': 'Delete Lead', 'description': 'Delete lead from Marketo database', 'primaryAttribute': {'name': 'Remove from CRM', 'dataType': 'boolean'}, 'id': 37}
However when I actually pull sample data back for this activity type (37), I get something like:
{'id': 18, 'primaryAttributeValue': 'nick', 'activityTypeId': 37, 'activityDate': '2016-01-25T21:57:26Z', 'leadId': 1, 'primaryAttributeValueId': 1, 'attributes': []}
This is very inconsistent because my code thinks that the primaryAttributeValue should be a boolean but in fact its a string, and appears to be the lead's first name.
I believe this issue extends beyond that of activity type 37. Has anyone seen this behavior or have an actual source of truth on this stuff?
Thanks!