partial response

Hi,

im very new to the topic api and cumulocity. i know about the term “partial response” often used like this: …/?fields=name, id
is there also a possibility for cumulocity api or cant i find it? or is it just possible with smart rest templates?

thx for your help in advance.

Greetings Uwe

Hi Uwe,

sorry for the late reply. Can you please explain a little bit more what you are trying?

best regards
Michael

lets say i want the data of a specific device, i would get this answer:


{
            "additionParents": {
                "self": "...",
                "references": []
            },
            "owner": "...",
            "childDevices": {
                "self": "...",
                "references": []
            },
            "childAssets": {
                "self": "...",
                "references": []
            },
            "creationTime": "...",
            "type": "...",
            "lastUpdated": "...",
            "childAdditions": {
                "self": "......",
                "references": []
            },
            "name": "...",
            "assetParents": {
                "self": "...",
                "references": []
            },
            "deviceParents": {
                "self": "...",
                "references": []
            },
            "self": "...",
            "id": "...",
            "com_cumulocity_model_Agent": {},
            "c8y_IsDevice": {},
            "c8y_SupportedOperations": []
        }

now i just want the id and name for example and not the rest. what do i have to do?