---
title: "PUT /endpoints/device_bindings/{policy_binding_uuid}/"
method: PUT
path: "/endpoints/device_bindings/{policy_binding_uuid}/"
tags: ["endpoints"]
---

# PUT /endpoints/device_bindings/{policy_binding_uuid}/

`PUT /endpoints/device_bindings/{policy_binding_uuid}/`

PolicyBinding Viewset

## Path parameters

- `policy_binding_uuid` string, uuid, required

## Request body

- DeviceUserBindingRequest — PolicyBinding Serializer
  - `policy` string, uuid, nullable
  - `group` string, uuid, nullable
  - `user` integer, nullable
  - `target` string, uuid, required
  - `negate` boolean — Negates the outcome of the policy. Messages are unaffected.
  - `enabled` boolean
  - `order` integer, required
  - `timeout` integer — Timeout after which Policy execution is terminated.
  - `failure_result` boolean — Result if the Policy execution fails.
  - `is_primary` boolean

## Response `200`

- DeviceUserBinding — PolicyBinding Serializer
  - `pk` string, uuid, required
  - `policy` string, uuid, nullable
  - `group` string, uuid, nullable
  - `user` integer, nullable
  - `policy_obj` Policy, required — Policy Serializer
    - `pk` string, uuid, required
    - `name` string, required
    - `execution_logging` boolean — When this option is enabled, all executions of this policy will be logged. By default, only execution errors are logged.
    - `component` string, required — Get object component so that we know how to edit the object
    - `verbose_name` string, required — Return object's verbose_name
    - `verbose_name_plural` string, required — Return object's plural verbose_name
    - `meta_model_name` string, required — Return internal model name
    - `bound_to` integer, required — Return objects policy is bound to
  - `group_obj` PartialGroup, required — Partial Group Serializer, does not include child relations.
    - `pk` string, uuid, required
    - `num_pk` integer, required — Get a numerical, int32 ID for the group
    - `name` string, required
    - `is_superuser` boolean — Users added to this group will be superusers.
    - `attributes` object
  - `user_obj` PartialUser, required — Partial User Serializer, does not include child relations.
    - `pk` integer, required
    - `username` string, required — Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
    - `name` string, required — User's display name.
    - `is_active` boolean — Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
    - `last_login` string, date-time, nullable
    - `email` string, email
    - `attributes` object
    - `uid` string, required
  - `target` string, uuid, required
  - `negate` boolean — Negates the outcome of the policy. Messages are unaffected.
  - `enabled` boolean
  - `order` integer, required
  - `timeout` integer — Timeout after which Policy execution is terminated.
  - `failure_result` boolean — Result if the Policy execution fails.
  - `expires` string, date-time, nullable, required
  - `expiring` boolean, required
  - `is_primary` boolean
  - `connector` string, uuid, nullable, required
  - `connector_obj` Connector, required
    - `connector_uuid` string, uuid
    - `name` string, required
    - `enabled` boolean
    - `component` string, required — Get object component so that we know how to edit the object
    - `verbose_name` string, required — Return object's verbose_name
    - `verbose_name_plural` string, required — Return object's plural verbose_name
    - `meta_model_name` string, required — Return internal model name

## Other responses

- `400`
- `403`

---

[API](https://skmtc.dev/goauthentik/apis/authentik.md) · [All operations](https://skmtc.dev/goauthentik/apis/authentik/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goauthentik/authentik/revisions/4e42e86021d7/schema)
