---
title: "PATCH /rac/connection_tokens/{connection_token_uuid}/"
method: PATCH
path: "/rac/connection_tokens/{connection_token_uuid}/"
tags: ["rac"]
---

# PATCH /rac/connection_tokens/{connection_token_uuid}/

`PATCH /rac/connection_tokens/{connection_token_uuid}/`

ConnectionToken Viewset

## Path parameters

- `connection_token_uuid` string, uuid, required

## Request body

- PatchedConnectionTokenRequest — ConnectionToken Serializer
  - `pk` string, uuid
  - `provider` integer
  - `endpoint` string, uuid

## Response `200`

- ConnectionToken — ConnectionToken Serializer
  - `pk` string, uuid
  - `provider` integer, required
  - `provider_obj` RACProvider, required — RACProvider Serializer
    - `pk` integer, required
    - `name` string, required
    - `authentication_flow` string, uuid, nullable — Flow used for authentication when the associated application is accessed by an un-authenticated user.
    - `authorization_flow` string, uuid, required — Flow used when authorizing this provider.
    - `property_mappings` string[]
    - `component` string, required — Get object component so that we know how to edit the object
    - `assigned_application_slug` string, nullable, required — Internal application name, used in URLs.
    - `assigned_application_name` string, nullable, required — Application's display Name.
    - `assigned_backchannel_application_slug` string, nullable, required — Internal application name, used in URLs.
    - `assigned_backchannel_application_name` string, nullable, required — Application's display Name.
    - `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
    - `settings` object
    - `outpost_set` string[], required
    - `connection_expiry` string — Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)
    - `delete_token_on_disconnect` boolean — When set to true, connection tokens will be deleted upon disconnect.
  - `endpoint` string, uuid, required
  - `endpoint_obj` Endpoint, required — Endpoint Serializer
    - `pk` string, uuid, required
    - `name` string, required
    - `provider` integer, required
    - `provider_obj` RACProvider, required — RACProvider Serializer
      - `pk` integer, required
      - `name` string, required
      - `authentication_flow` string, uuid, nullable — Flow used for authentication when the associated application is accessed by an un-authenticated user.
      - `authorization_flow` string, uuid, required — Flow used when authorizing this provider.
      - `property_mappings` string[]
      - `component` string, required — Get object component so that we know how to edit the object
      - `assigned_application_slug` string, nullable, required — Internal application name, used in URLs.
      - `assigned_application_name` string, nullable, required — Application's display Name.
      - `assigned_backchannel_application_slug` string, nullable, required — Internal application name, used in URLs.
      - `assigned_backchannel_application_name` string, nullable, required — Application's display Name.
      - `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
      - `settings` object
      - `outpost_set` string[], required
      - `connection_expiry` string — Determines how long a session lasts. Default of 0 means that the sessions lasts until the browser is closed. (Format: hours=-1;minutes=-2;seconds=-3)
      - `delete_token_on_disconnect` boolean — When set to true, connection tokens will be deleted upon disconnect.
    - `protocol` 'rdp' | 'vnc' | 'ssh', required
    - `host` string, required
    - `settings` object
    - `property_mappings` string[]
    - `auth_mode` 'static' | 'prompt', required
    - `launch_url` string, nullable, required — Build actual launch URL (the provider itself does not have one, just individual endpoints)
    - `maximum_connections` integer
  - `user` 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

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