Remove a bandwidth block from a server
Overview
Detaches a bandwidth block from a server. Send server. Coverage ends immediately, and servers over their plan allowance are throttled again. Previous usage remains recorded so reattaching the block does not count the same traffic twice.
Permissions
Requires the network.update (Change networking) permission for the selected team. Resources outside that team return 404.
Authorization
Your API key, sent as a bearer token. Create one in the control panel under API Keys, give it only the permissions the integration needs, and copy it when it is created. It cannot be shown again. Each key is restricted to one owned team. The key determines the team for every request.
Send it as Bearer <token>.
Path parameters
The bandwidth block uuid short
Body
application/jsonThe value of server.
At most 36 characters
Response 200
application/jsonThe record, as a JSON object. There is no envelope.
The uuid UUID.
The value of uuid_short.
The value of region.
One of: us_eu, apac
The value of region_label.
The value of size.
The value of consumed.
The value of remaining.
The value of terabytes.
The value of status.
One of: pending_payment, active, expired, cancelled, payment_review, revoked
The value of status_label.
One sentence about why a purchase is waiting, most often how much the account is short by. Null once there is nothing to say.
Whether the purchase is waiting for enough account credit.
Whether the block is assigned to individual servers or a city.
The value of servers.
Show child attributesHide child attributes
The id ID.
The uuid UUID.
The name shown to customers.
The fully qualified hostname.
What a badge or a picker paints the machine with, the same as the dashboard.
The value of template_icon_url.
The value of windows.
The machine's primary IPv4, so a picker names it the way a customer does.
The city it sits in, or null when its location is unknown.
The rest of what it covers, counted rather than named. Nought for the account holder, who is shown every one of them, and for anyone else not standing inside a single team.
How many of the account's servers this block could still be put behind: metered, in the region it was bought for, and not already covered by it. Null where it was not counted, which is not the same as none.
The value of location.
Show child attributesHide child attributes
The id ID.
The name shown to customers.
The value of unit_price.
The value of billing.
Show child attributesHide child attributes
The customer's service number, once a recurring service exists.
The customer's invoice number, once an invoice exists.
A complete URL where the invoice can be paid.
The checkout UUID, or null when no checkout is available.
The value of checkout_uuid_short.
The current invoice status, or null before an invoice exists.
The amount in the currency shown by currency.
The three-letter currency code used for amount.
How often the service renews, or null for a one-time charge.
When payment is due before the reservation is released.
How many minutes the original payment window allowed.
When the charge was paid, or null while payment is outstanding.
Whether the customer can cancel.
The date and time for created at, in UTC.
The value of cancellation_refund.
The value of refund_amount.
The value of refund_pending.
Errors
- 401
- The key was missing, malformed, revoked, or belongs to an account that no longer exists.
- 403
- Access denied. Check the key's team, permissions and allowed IP addresses. Some actions, such as managing API keys, require a browser session. The response message explains the reason.
- 404
- The resource was not found in the selected team. Resources in another account or team also return 404.
- 422
- A field is missing or invalid, or the resource cannot accept this change in its current state. Check
messagefor details. Field validation also includes anerrorsobject keyed by field name. - 429
- Too many requests. The
Retry-Afterheader says how many seconds to wait. Limits are per account, so several keys on one account share them.
Still stuck? Contact our team
View as Markdown