API reference
Set credit alert
Create or replace the organization's credit-balance alert. An email is sent to the organization's billing email when the credit balance drops below the threshold.
View MarkdownPUT/credit-alert
Create or replace the organization's credit-balance alert. An email is sent to the organization's billing email when the credit balance drops below the threshold.
Request body
application/json
| Field | Type | Description |
|---|---|---|
amount_centsRequired | integer |
Responses
200 · OK
| Field | Type | Description |
|---|---|---|
alert | thundertypes.CreditAlert |
400 · Bad Request
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
401 · Unauthorized
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
500 · Internal Server Error
| Field | Type | Description |
|---|---|---|
code | integer | |
error | string | |
message | string |
Operation specification
The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.