---
title: "Sets the spend limit for an organization."
method: PUT
path: "/billing/organization/{organizationId}/credit-line"
tags: ["BillingAccount"]
---

# Sets the spend limit for an organization.

`PUT /billing/organization/{organizationId}/credit-line`

## Request

- Base URL: `https://api.rapidata.ai`
- URL: `https://api.rapidata.ai/billing/organization/{organizationId}/credit-line`
- Auth: OpenID Connect (`https://auth.rapidata.ai/.well-known/openid-configuration`, scopes: `openid`, `profile`, `email`, `offline_access`, `api`)

## Path parameters

- `organizationId` string, required

## Request body

- SetOrganizationCreditLineEndpointInput
  - `creditLine` number, double, nullable, required: The new credit line. null means no limit (unlimited), 0 disables all traffic, and a positive value caps spend at that amount.

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthenticated
- `403`: Forbidden

## Changes

- **2026-09-04** `9da534659e5f`: 1 info
  - the security scope `api` was added to the endpoint's security scheme `OpenIdConnect`

[Operation history](https://skmtc.dev/rapidata/apis/rapidata-api/changes/billing/organization/:organizationId/credit-line/put.md)

---

[API](https://skmtc.dev/rapidata/apis/rapidata-api.md) - [All operations](https://skmtc.dev/rapidata/apis/rapidata-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rapidata/apis/rapidata-api/revisions/004a977d7d9f?raw)
