API - Return subset of results.

Im using the POST api/v2/search api for 16.2. I only want the ID values for each returned result;

"results": [
    {
        "data": {
            "properties": {
                "id": 1897009,

and not the following entire resultset;

"results": [
    {
        "data": {
            "properties": {
                "container": true,
                "container_size": 0,
                "create_date": "2016-09-15T16:37:07",
                "create_user_id": 40278,
                "description": "",
                "description_multilingual": {
                    "en_GB": ""
                },
                "due_date": null,
                "external_create_date": null,
                "external_identity": "",
                "external_identity_type": "",
                "external_modify_date": null,
                "external_source": "",
                "favorite": false,
                "goals": "",
                "id": 1897009,

I've tried using fields?id etc but no dice. Perhaps that's not immplemented.

Anybody know how to achieve this?

Tagged:

Comments