How can we add more metadata to Mender's "Check for deployments" response

What we currently get from the “check for updates” endpoint ${MENDER_SERVER_URL}/api/devices/v1/deployments/device/deployments/next is something like this:

{
    "id": "guid",
    "artifact": {
        "artifact_name": "name",
        "source": {
            "uri": "download_url",
            "expire": "2024-11-14T20:19:18.017488718Z",
            "method": "GET"
        },
        "device_types_compatible": [
            "device_type"
        ]
    }
}

What if we want to add more metadata to this response, for example:

  • new veriosn of the update
  • release notes
  • size of the payload (not the artifact, but the update payload)
  • hash of the payload

Currently, we can get all this info only after we have downloaded the artiact, and that too is deep inside nested TARs, so you have to do post-processing after download before you can get all this info.

Hi @ch3ckmat3,

as you mentioned in the other thread that it solved your problem at least well enough for now, should I mark this as solved?

Greetz,
Josef

Hi, thank you for the reply.

It kinda does but I am not going to use it for my current application (a Flutter app). If there is no other cleaner way of doing it, I can close this one, but can the Dev team at Mender register it as a featue requeast, as it sure has practicle use cases.