---
title: "Set user-level setting"
method: POST
path: "/api/{org_id}/settings/v2/user/{user_id}"
tags: ["Organizations"]
---

# Set user-level setting

`POST /api/{org_id}/settings/v2/user/{user_id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/settings/v2/user/{user_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/settings/v2/user/:user_id/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates or updates a user-level setting. This setting applies only to the specific user and overrides org-level and system-level settings.

## Path parameters

- `org_id` string, required
- `user_id` string, required

## Request body

- SystemSettingPayload: Request to create or update a setting
  - `description` string, nullable: Optional description
  - `setting_category` string, nullable: Optional category
  - `setting_key` string, required: Setting key
  - `setting_value` unknown, required

## Response `200`

Success

- SystemSetting: A system setting record
  - `created_at` integer: Created timestamp (microseconds)
  - `created_by` string, nullable: User who created this setting
  - `description` string, nullable: Optional description
  - `id` integer, nullable: Unique identifier
  - `org_id` string, nullable: Organization ID (required for org/user scope)
  - `scope` 'system' | 'org' | 'user', required: Setting scope levels
  - `setting_category` string, nullable: Optional category for grouping
  - `setting_key` string, required: Setting key identifier
  - `setting_value` unknown, required
  - `updated_at` integer: Updated timestamp (microseconds)
  - `updated_by` string, nullable: User who last updated this setting
  - `user_id` string, nullable: User ID (required for user scope)

## Other responses

- `400`: Failure

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
