radyakin / susoapi

Survey Solutions API access from Stata
1 stars 3 forks source link

For newly created assignment return assignment ID and other info #25

Closed radyakin closed 2 years ago

radyakin commented 2 years ago

The server responds with something like this on successful assignment creation.

{'Assignment': {'IdentifyingData': [
{'Identity': '218c2e29b8bd2c39b4c2daa5ab980d0a', 'Variable': None, 'Answer': '1234 Test St., My City, USA'}, 
{'Identity': '85bff696a973c54141fb17fd6458da99', 'Variable': None, 'Answer': '5'}], 
'Id': 1226595, 
'ResponsibleId': '7607063d-ad66-4cc6-a175-42d3e6a57745', 
'ResponsibleName': 'SergiyIntJan', 
'QuestionnaireId': '8352f83fe9eb4e48888142402a49ce3e$1', 
'InterviewsCount': 0, 
'Quantity': 10000, 
'Archived': False, 
'CreatedAtUtc': '2022-10-18T20:17:27.067627Z', 
'UpdatedAtUtc': '2022-10-18T20:17:27.067627Z', 
'Email': '', 
'Password': '', 
'WebMode': False, 
'ReceivedByTabletAtUtc': None, 
'IsAudioRecordingEnabled': False}, 
'VerificationStatus': None, 
'WebInterviewLink': None}

Need to return the assignment ID (Id property) and possibly other properties in the saved results.