---
title: "SetRole"
method: POST
path: "/gitpod.v1.OrganizationService/SetRole"
tags: ["gitpod.v1.OrganizationService"]
---

# SetRole

`POST /gitpod.v1.OrganizationService/SetRole`

## Request body

- GitpodV1SetRoleRequest
  - `organizationId` string, uuid, required
  - `role` 'ORGANIZATION_ROLE_UNSPECIFIED' | 'ORGANIZATION_ROLE_ADMIN' | 'ORGANIZATION_ROLE_MEMBER'
  - `userId` string, uuid, required

## Response `200`

Success

- GitpodV1SetRoleResponse

## Other responses

- `default` — Error

## Changes

- **2025-02-14** `988164042da1` — 2 breaking
  - the request property `organizationId` became required
  - the request property `userId` became required

[Change history](https://skmtc.dev/gitpod-io/apis/gitpod-v1/changes/gitpod.v1.OrganizationService/SetRole/post.md)

---

[API](https://skmtc.dev/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.dev/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/27f7bd641de1/schema)
