---
title: "PATCH /endpoints/agents/enrollment_tokens/{token_uuid}/"
method: PATCH
path: "/endpoints/agents/enrollment_tokens/{token_uuid}/"
tags: ["endpoints"]
---

# PATCH /endpoints/agents/enrollment_tokens/{token_uuid}/

`PATCH /endpoints/agents/enrollment_tokens/{token_uuid}/`

Mixin to add a used_by endpoint to return a list of all objects using this object

## Path parameters

- `token_uuid` string, uuid, required

## Request body

- PatchedEnrollmentTokenRequest
  - `device_group` string, uuid, nullable
  - `connector` string, uuid
  - `name` string
  - `expiring` boolean
  - `expires` string, date-time, nullable

## Response `200`

- EnrollmentToken
  - `token_uuid` string, uuid, required
  - `device_group` string, uuid, nullable
  - `device_group_obj` DeviceAccessGroup, required
    - `pbm_uuid` string, uuid, required
    - `name` string, required
    - `attributes` object
  - `connector` string, uuid, required
  - `name` string, required
  - `expiring` boolean
  - `expires` string, date-time, nullable

## 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)
