Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Problems intializing participant table with custom attributes via API

  • ployrich
  • ployrich's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 10 months ago #217474 by ployrich
Hi y'all,

I am trying to initialize my participant table via API (using the json-rpc with Python). The table needs some custom attributes, looking at the documentation I should be able to do this as array. I assumed the array could/should look like the arrays used for uploading participant data via API.
But after trying a lot of combinations like:
[{"Attribute field": "attribute_1", "Mandatory":1/Yes,"Field caption":"class"}] , without specifying the attribute field, just giving them the captions for the custom attributes
I only get the result OK and the table is initialized, but without the specified attributes.

How do I need to specify the custom attributes?

Thanks in advance
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose