Field filters on /api/metadata

This is not supported, you can try with ?organisationUnits=false

···

On Mon 5 Jan 2015 at 05:06 Mahendra Kariya mahendra.kariya@thoughtworks.com wrote:

Hi,

We want the entire metadata without organisationUnits. We tried to GET /api/metadata?fields=:all,!organisationUnits. But the response has all the org units.

Is this a bug? Or is this intended?

Thanks,

Mahendra.

Hi Mahendra

I’m hoping to have it support object/field filter in the future, hopefully as soon as 2.19 (but could be 2.20). It will be done as part of the dxf2 importer refactor / object filter criteria optimisation.

···

On Mon, Jan 5, 2015 at 1:26 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

This is not supported, you can try with ?organisationUnits=false

On Mon 5 Jan 2015 at 05:06 Mahendra Kariya mahendra.kariya@thoughtworks.com wrote:

Hi,

We want the entire metadata without organisationUnits. We tried to GET /api/metadata?fields=:all,!organisationUnits. But the response has all the org units.

Is this a bug? Or is this intended?

Thanks,

Mahendra.

Hi Mahendra,

would this work?

/api/metaData?assumeTrue=true&organisationUnits=false

I know you might ask for removing org units completely including associations.

Lars

Great.

···

On Wed, Jan 7, 2015 at 9:48 AM, Mahendra Kariya mahendra.kariya@thoughtworks.com wrote:

Hi Lars,

This will work for us. :slight_smile: