Hanzo Docs

Upload an image to a planet

POST
/planets/{planetId}/image

Got a crazy good photo of a planet? Share it with the world!

AuthorizationBearer <token>

JWT Bearer token authentication

In: header

Path Parameters

planetId*integer

The ID of the planet to get

Formatint64

Request Body

multipart/form-data

Image to upload

image?file

The image file to upload

Formatbinary

Response Body

curl -X POST "https://galaxy.scalar.com/planets/1/image"
{
  "message": "Image uploaded successfully",
  "imageUrl": "https://cdn.scalar.com/images/8f47c132-9d1f-4f83-b5a4-91db5ee757ab.jpg",
  "uploadedAt": "2024-01-15T14:30:00Z",
  "fileSize": 1048576,
  "mimeType": "image/jpeg"
}