name_required
HTTP 422 A name is required for this image
What happened
You are creating a server from an ordinary image and the body has no name. Routers are the one exception - they take no name at all, because the platform assigns it after the server is cloned.
What to do
Add "name" to the body. If you meant to create a router, the image you sent is an ordinary one: take the router image from GET /v1/server-types/{id}/images. An image id the server type does not offer never gets here - it is refused as image_not_found (404) before the name is checked.
Retrying
Fix the request and send it again.
How it arrives
{
"type": "https://docs.fiberax.com/errors/name_required",
"title": "A name is required for this image",
"status": 422,
"code": "name_required",
"request_id": "a277dcd1ca652c65"
}
Branch your code on code, never on the wording of title.