---
title: "Sets a permanent user to temporary"
method: PUT
path: "/resources/users/temporary/v1/{userId}"
tags: ["User management"]
---

# Sets a permanent user to temporary

`PUT /resources/users/temporary/v1/{userId}`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/users/temporary/v1/{userId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/users/temporary/v1/:userId/put.ts> (a function with typed inputs; its response is checked against the schema)

This route updates the settings for temporary users, use it to enable or disable it for an environment

## Path parameters

- `userId` string, required

## Request body

- TemporaryUserDto
  - `expirationInSeconds` number, required

## Response `201`

- TemporaryUserDto
  - `expirationInSeconds` number, required

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
