# Apply a deployment for a specific device

**URL:** <https://hub.mender.io/t/apply-a-deployment-for-a-specific-device/6944>\
**Category:** General Discussions\
**Tags:** api, mender-client, management-api\
**Created:** [June 12, 2024, 3:02pm UTC](https://hub.mender.io/t/apply-a-deployment-for-a-specific-device/6944 "2024-06-12T15:02:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mister\_kanister](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mister\_kanister](https://hub.mender.io/u/mister_kanister)\
**Post date:** [June 12, 2024, 3:02pm UTC](https://hub.mender.io/t/apply-a-deployment-for-a-specific-device/6944/1 "2024-06-12T15:02:57Z")

</div>

Good Day, Friends!

For a task, I need to create a deployment for a specific device. To do that, I need the device ID that I will use to trigger a deployment for that device via API call.

It comes to my attention only inventory attributes can be used for that API call:

```auto
# https://docs.mender.io/api/3.4/#management-api-device-inventory

# This will give me all devices (max. 500 per page)
self.api_call.endpoint = f"/api/management/v1/inventory/devices"

# This will result in empty responses
self.api_call.endpoint = f"/api/management/v1/inventory/devices?status=accepted"
self.api_call.endpoint = f"/api/management/v1/inventory/devices?serial=<serial>"
self.api_call.endpoint = f"/api/management/v1/inventory/devices?mac=<mac>"

# This will retrieve a sufficient match, but is hard to implement
self.api_call.endpoint = f"/api/management/v1/inventory/devices?wlan0_mac=<mac>"

```

Same problem described in this [old post](https://hub.mender.io/t/specific-identity-is-not-available/418/7)

My auth-set:

```auto
        auth_set = {           
            'identity_data': {
                'mac': self.mac,
                'serial': self.serial
            },
            'pubkey': self.mender_public_key
        }

```

It is not an option to expand the device inventory with serial or mac.  
Using Mender 3.4

Are there other ways to fetch a device id for a specified serial or apply a deployment for that serial?

Thanks in advance!
