Update multiple custom attributes via API
Currently only one custom attribute can be updated per API call either for a single device or device group.
https://api.simplemdm.com/#set-value-for-device
https://api.simplemdm.com/#set-value-for-group
Say I want to set multiple custom attributes within a single workflow. I need to make as many API calls as there are attributes to update. In my recent work that's four calls which could've been one. This also simplifies developing with the API - don't have to iterate through values along with grokking associated return statuses.
I'm requesting the functionality to update multiple custom attributes with one API call.
PUT https://a.simplemdm.com/api/v1/devices/{DEVICE_ID}/custom_attribute_values
Remove attribute name from endpoint URL and move to the request body. Multiple attributes can then be defined for devices or groups. Something like...
{
"username": "tobias.funke",
"role": "therapist",
"team": "natural good-time family band solution",
"department": "musical theater"
}
Thank you for considering!
![](https://secure.gravatar.com/avatar/0f22ddbfd9fbe47ed3346d63b860b26b?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)