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

# SetOrganizationCreditGrant

`POST /gitpod.v1.BillingService/SetOrganizationCreditGrant`

Sets the contracted credit grant for an organization.

 This is an admin-only operation for setting the total credit budget
 allocated to an enterprise organization under their contract.

 ### Examples

 - Set credit grant:

   ```yaml
   organizationId: "b0e12f6c-4c67-429d-a4a6-d9838b5da047"
   creditGrant: "10000"
   ```

 ### Authorization

 Requires `change_billing_realm` account permission.

## Request body

- GitpodV1SetOrganizationCreditGrantRequest
  - `creditGrant` string, required — credit_grant is the contracted credit grant in whole credits. Must be >= 0.
  - `organizationId` string, uuid, required

## Response `200`

Success

- GitpodV1SetOrganizationCreditGrantResponse

## 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)
