Upload an image to a planet
POST
Got a crazy good photo of a planet? Share it with the world!
header
AuthorizationBearer <token>JWT Bearer token authentication
planetId*integerThe ID of the planet to get
Format
int64Image to upload
multipart/form-data- body
image?fileThe image file to upload
Format
binaryImage uploaded
- response
Message about an image upload
message?stringimageUrl?stringThe URL where the uploaded image can be accessed
uploadedAt?stringTimestamp when the image was uploaded
Format
date-timefileSize?integerSize of the uploaded image in bytes
mimeType?stringThe content type of the uploaded image
curl -X POST 'https://galaxy.scalar.com/planets/1/image'Example Response
{
"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"
}