disk_shrink_not_allowed
HTTP 422 Disks can only grow
What happened
The size_gb you sent is smaller than or equal to the disk's current size. Disks only grow: the platform cannot shrink one without losing what is on it.
What to do
Send a size_gb larger than the current size, or leave the disk as it is. The upper limit is the same as when ordering a server of this server type.
Retrying
Fix the request and send it again.
How it arrives
{
"type": "https://docs.fiberax.com/errors/disk_shrink_not_allowed",
"title": "Disks can only grow",
"status": 422,
"code": "disk_shrink_not_allowed",
"request_id": "a277dcd1ca652c65"
}
Branch your code on code, never on the wording of title.