---
title: "Set User Trial Enabled"
method: PATCH
path: "/admin/users/{user_id}/trial-enabled"
tags: ["admin"]
---

# Set User Trial Enabled

`PATCH /admin/users/{user_id}/trial-enabled`

## Request

- Base URL: `https://api.threadchain.pro` (the document declares no server; this is the origin it was published from)
- URL: `https://api.threadchain.pro/admin/users/{user_id}/trial-enabled`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Enable or disable calendar trial enforcement for a user's organization.

## Path parameters

- `user_id` string, uuid, required

## Request body

- TrialEnabledRequest
  - `trial_enabled` boolean, required: When true, calendar trial rules apply; enabling grants a trial window and welcome credits if not already granted.
  - `grant_welcome_credits` boolean: When enabling trial, grant 2 welcome credits if this org has not received a trial_grant before.

## Response `200`

Successful Response

- TrialEnabledResponse
  - `success` boolean
  - `user_id` string, uuid, required
  - `org_id` string, uuid, required
  - `trial_enabled` boolean, required
  - `trial_start` string, date-time, nullable
  - `trial_end` string, date-time, nullable
  - `subscription_status` string, nullable
  - `credits_granted` integer
  - `credit_balance` integer

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/threadchain/apis/threadchain-backend.md) - [All operations](https://skmtc.dev/threadchain/apis/threadchain-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/threadchain/apis/threadchain-backend/revisions/8ee288a7e6bd?raw)
