---
title: "SetBillingRealm"
method: POST
path: "/gitpod.v1.BillingService/SetBillingRealm"
tags: ["gitpod.v1.BillingService"]
---

# SetBillingRealm

`POST /gitpod.v1.BillingService/SetBillingRealm`

Sets the billing realm for an organization.

 Use this method to:
 - Change organization's billing realm between sandbox and production
 - Configure billing environment for the organization
 - Requires Account permissions to perform the operation

 ### Examples

 - Set billing realm:

   Changes organization billing realm to production.

   ```yaml
   organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
   realm: BILLING_REALM_PRODUCTION
   ```

## Request body

- GitpodV1SetBillingRealmRequest
  - `organizationId` string, uuid, required — organization_id is the ID of the organization to update
  - `realm` 'BILLING_REALM_UNSPECIFIED' | 'BILLING_REALM_SANDBOX' | 'BILLING_REALM_PRODUCTION', required

## Response `200`

Success

- GitpodV1SetBillingRealmResponse

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/versions/44d50c2ac284/schema)
