---
title: "PUT /v1/users/{userId}/scope-defaults"
method: PUT
path: "/v1/users/{userId}/scope-defaults"
tags: ["Users"]
---

# PUT /v1/users/{userId}/scope-defaults

`PUT /v1/users/{userId}/scope-defaults`

Sets the authenticated user's default org and per-org default workspace in one batch.

## Path parameters

- `userId` string, uuid, required

## Headers

- `Authorization` string

## Request body

- object
  - `defaultOrgId` string, uuid, nullable, required
  - `defaults` object[], required
    - `orgId` string, uuid, required
    - `defaultWorkspaceId` string, uuid, nullable, required

## Response `200`

Default Response

- object
  - `links` object, required
    - `self` string, uri, required
  - `data` object, required
    - `id` string, uuid, required
    - `type` 'user-scope-defaults', required
    - `attributes` object, required
      - `defaultOrgId` string, uuid, nullable, required
      - `defaults` object[], required
        - `orgId` string, uuid, required
        - `defaultWorkspaceId` string, uuid, nullable, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-09-15** `d50a02b79ad3` — 2 info
  - added the optional property `error/code` to the response with the `403` status
  - added the optional property `error/url` to the response with the `403` status

[Change history](https://skmtc.dev/tessl/apis/tessl-api/changes/v1/users/:userId/scope-defaults/put.md)

---

[API](https://skmtc.dev/tessl/apis/tessl-api.md) · [All operations](https://skmtc.dev/tessl/apis/tessl-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tessl/apis/tessl-api/revisions/6da83f4191fc?raw)
