---
title: "Make a membership temporary"
method: PUT
path: "/v1/team/members/{userId}/access-until"
tags: ["Team"]
---

# Make a membership temporary

`PUT /v1/team/members/{userId}/access-until`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/team/members/{userId}/access-until`
- Auth: HTTP bearer

Sets when a member's membership ends, or `null` for no end. The hourly expiry then removes
the member with their shares and personal API keys, as a removal does. The moment must be
in the future; nobody sets their own, and the workspace always keeps a member who holds `team`.

Scope: `team:write`. The person behind the credential needs the `team` permission
(Admins by default).

## Path parameters

- `userId` string, uuid, required

## Request body

- object
  - `access_until` string, date-time, nullable, required

## Response `200`

Make a membership temporary: done.

- object
  - `user_id` string, uuid
  - `access_until` string, date-time, nullable

## Other responses

- `400`: The request is invalid.
- `401`: Missing or invalid API key.
- `403`: The API key does not have the required scope.
- `404`: The requested resource was not found.
- `429`: Daily rate limit exceeded.

## Changes

- **2026-11-28** `4e388563ca5a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/team/members/:userId/access-until/put.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
