---
title: "Device (by mac) Profiles"
method: PUT
path: "/v2/partition/{partitionId}/account/{accountId}/device/{macAddress}/profiles"
tags: ["Account Device"]
---

# Device (by mac) Profiles

`PUT /v2/partition/{partitionId}/account/{accountId}/device/{macAddress}/profiles`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/partition/{partitionId}/account/{accountId}/device/{macAddress}/profiles`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/partition/:partitionId/account/:accountId/device/:macAddress/profiles/put.ts> (a function with typed inputs; its response is checked against the schema)

Use to assign configuration profiles to a device (mac). Send the full list of profile IDs that should be assigned; an empty list removes all profile assignments from the device.

## Path parameters

- `accountId` string, required
- `macAddress` string, required
- `partitionId` string, required

## Request body

- MacProfilesX
  - `profileIds` string[]: IDs of the configuration profiles assigned to the device

## Response `200`

Successful operation

## Other responses

- `400`: Invalid request parameters
- `401`: Unauthorized
- `404`: PartitionId, AccountId, or MacAddress is not found

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
