---
title: "Update tenant invite of user"
method: PATCH
path: "/resources/tenants/invites/v1/user"
tags: ["Account invitations"]
---

# Update tenant invite of user

`PATCH /resources/tenants/invites/v1/user`

## Request

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

This route updates an invitation for a specific user to join a tenant. In order to set up a specific expiration time, use the expiresInMinutes to declare when the invite is being invalidated. The shouldSendEmail boolean declares wether an invitation email will be sent or not. Send the user’s ID in the **`frontegg-user-id`** header and the tenant’s ID in the **`frontegg-tenant-id`** header. A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Headers

- `frontegg-user-id` string, required
- `frontegg-tenant-id` string, required

## Request body

- UpdateInviteTokenRequest
  - `expiresInMinutes` number
  - `shouldSendEmail` boolean

## Response `200`

- InviteTokenDto
  - `id` string, required
  - `vendorId` string, required
  - `tenantId` string, required
  - `userId` string
  - `token` string, required
  - `expires` string, date-time, required
  - `shouldSendEmail` boolean, required
  - `name` string

---

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