> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Device Account

Update fields of a device account.

## Parameters

<div className="integrations-table">
  | Parameter    | Description                                  |
  | ------------ | -------------------------------------------- |
  | Device ID    | The ID of the device to update.              |
  | Enabled      | Flag indicating if the account is enabled.   |
  | Expire Time  | Time at which the account will expire.       |
  | Role ID      | The ID of the role to assign to the account. |
  | Start Time   | Time at which the account will be enabled.   |
  | Visitor Name | Name to display for the account.             |
</div>

## Example Output

```json theme={"dark"}
{
	"_links": {
		"self": {
			"href": "https://clearpass-host/api/device?calculate_count=false&offset=0&limit=25&sort=-id&filter=%7B%7D"
		},
		"first": {
			"href": "https://clearpass-host/api/device?calculate_count=false&offset=0&limit=25&sort=-id&filter=%7B%7D"
		}
	},
	"_embedded": {
		"items": [
			{
				"id": "3001",
				"username": "00-1A-2B-3C-4D-5E",
				"start_time": 1696929372,
				"expire_time": 1728465372,
				"sponsor_name": "admin",
				"sponsor_profile": "1",
				"enabled": true,
				"current_state": "active",
				"notes": "",
				"role_name": "[Guest]",
				"role_id": 2,
				"mac": "00-1A-2B-3C-4D-5E",
				"mac_auth": true,
				"source": "mac_create",
				"do_expire": "1",
				"no_portal": "1",
				"create_time": 1696929372,
				"no_password": "1",
				"remote_addr": "85.64.17.207",
				"visitor_name": "John's Amazing Laptop",
				"airgroup_enable": "1",
				"airgroup_shared": "",
				"expire_postlogin": "0",
				"simultaneous_use": "1",
				"airgroup_shared_role": "",
				"airgroup_shared_time": "",
				"airgroup_shared_user": "admin",
				"sponsor_profile_name": "Super Administrator",
				"airgroup_shared_group": "",
				"expired_notify_status": "1",
				"airgroup_shared_location": "",
				"_links": {
					"self": {
						"href": "https://clearpass-host/api/device/3001"
					}
				}
			}
		]
	}
}
```

## Workflow Library Example

[Update Device Account with Clearpass and Send Results Via Email](https://library.blinkops.com/workflows/update-device-account-with-clearpass-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-device-account-with-clearpass-and-send-results-via-email/canvas" />
</div>
