---
title: "PATCH /api/v1/auth/universal-auth/identities/{identityId}"
method: PATCH
path: "/api/v1/auth/universal-auth/identities/{identityId}"
tags: ["Universal Auth"]
---

# PATCH /api/v1/auth/universal-auth/identities/{identityId}

`PATCH /api/v1/auth/universal-auth/identities/{identityId}`

Update Universal Auth configuration on machine identity

## Path parameters

- `identityId` string, required

## Request body

- object
  - `clientSecretTrustedIps` object[] — The new list of IPs or CIDR ranges that the Client Secret can be used from.
    - `ipAddress` string, required
  - `accessTokenTrustedIps` object[] — The new list of IPs or CIDR ranges that access tokens can be used from.
    - `ipAddress` string, required
  - `accessTokenTTL` integer — The new lifetime for an access token in seconds.
  - `accessTokenNumUsesLimit` integer — The new maximum number of times that an access token can be used.
  - `accessTokenMaxTTL` integer — The new maximum lifetime for an access token in seconds.
  - `accessTokenPeriod` integer — The new period for an access token in seconds.
  - `lockoutEnabled` boolean — Whether the lockout feature is enabled.
  - `lockoutThreshold` number — The amount of times login must fail before locking the identity auth method.
  - `lockoutDurationSeconds` number — How long an identity auth method lockout lasts.
  - `lockoutCounterResetSeconds` number — How long to wait from the most recent failed login until resetting the lockout counter.

## Response `200`

Default Response

- object
  - `identityUniversalAuth` object, required
    - `id` string, uuid, required
    - `clientId` string, required
    - `accessTokenTTL` number
    - `accessTokenMaxTTL` number
    - `accessTokenNumUsesLimit` number
    - `clientSecretTrustedIps` unknown
    - `accessTokenTrustedIps` unknown
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `identityId` string, uuid, required
    - `accessTokenPeriod` number
    - `lockoutEnabled` boolean
    - `lockoutThreshold` number
    - `lockoutDurationSeconds` number
    - `lockoutCounterResetSeconds` number

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/f10a4f8c1d41/schema)
