---
title: "Change a User's Role in a Hub"
method: PUT
path: "/v1/hub/{hub_id}/change-user-role/{firebase_id}"
tags: ["Hub"]
---

# Change a User's Role in a Hub

`PUT /v1/hub/{hub_id}/change-user-role/{firebase_id}`

Change the role of a user in a specific hub, identified by the hub's UUID and user's Firebase ID

## Path parameters

- `hub_id` string, uuid, required
- `firebase_id` string, required

## Request body

- ChangeUserRole
  - `role` 'owner' | 'admin' | 'member', required

## Response `200`

User's role successfully changed in the hub

- object
  - `metadata` object
  - `data` SimpleHub
    - `logo` string
    - `projectList` ProjectList[]
      - `createdAt` string, date-time
      - `updatedAt` string, date-time
      - `favourite` boolean
      - `projectRole` string
      - `user` User6
        - `publicId` string, uuid
        - `name` string
        - `firebaseUserId` string
        - `email` string
        - `kind` string
    - `publicId` string
    - `image` string
    - `name` string
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `isDeleted` boolean
    - `mfaRequired` boolean
    - `hideProcessCreated` boolean
    - `aiSearchEnabled` boolean
    - `deletedAt` string, date-time
    - `primaryColour` string
    - `fontColour` string
    - `defaultProcessId` string
    - `defaultHeaderBackgroundColor` string
    - `defaultHeaderTextColor` string
    - `defaultDateFormat` string
    - `defaultDatetimeFormat` string
    - `allowTableExport` boolean
    - `allowDocumentExport` boolean
    - `wordTemplate` string
    - `public` boolean
    - `domainsAccess` string[]
    - `processTitleFontSize` number
    - `processTitleBold` boolean
    - `processTitleItalic` boolean
    - `processTitleUnderline` boolean
    - `processTitleColour` string
    - `processTitleAlignment` string
    - `headingStyles` HeadingStyle[]
      - `publicId` string, uuid
      - `level` integer
      - `bold` boolean
      - `italic` boolean
      - `underline` boolean
      - `colour` string
      - `numberingStyle` integer
      - `startAt0` boolean
      - `fontSize` number
    - `defaultBanner` string

## Other responses

- `403` — Insufficient permissions to change the user's role
- `404` — Hub or user not found
- `405` — Operation not allowed on a non-active hub

---

[API](https://skmtc.net/morta-technology/apis/morta-api-reference.md) · [All operations](https://skmtc.net/morta-technology/apis/morta-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/morta-technology/morta-api-reference/versions/9c58c1c1e7e8/schema)
