Webservice api: How does a 'query' in 'core_cohort_search_cohorts' has to look like?

Webservice api: How does a 'query' in 'core_cohort_search_cohorts' has to look like?

by Moritz Neuhaus -
Number of replies: 1

Hi,

For our project I have to get the id's of specific cohorts, so I can add members to them. Looks like I can do that with the API function 'core_cohort_search_cohorts'.

It has the argument "query'. But I can't find any documentation about the syntax of such a querystring. I succeeded getting a lists of cohorts with this function with an empty query. Now I want to search a specific cohort by name.

I was guessing something like "query"=>"name='myCohort'". But that returns an empty array.

Does anybody know the right answer?

Thanks in advance,

Moritz

Average of ratings: -
In reply to Moritz Neuhaus

Re: Webservice api: How does a 'query' in 'core_cohort_search_cohorts' has to look like?

by Obelisk Services -

Hi,

Maybe it's too late, but we tried "query"=>"myCohort" and it seems to search the string in all fields, including "name". It is not as clean as it should be but it works.

Hope it helps someone.

Best regards.