Upload an image to a planet
Got a crazy good photo of a planet? Share it with the world!
https://galaxy.scalar.com/planets/{planetId}/imageTry it
path Parameters
The ID of the planet to get
Authorization
bearerAuth (bearer)
JWT Bearer token authentication
basicAuth (basic)
Basic HTTP authentication
apiKeyQuery (query: api_key)
API key query parameter
apiKeyHeader (header: X-API-Key)
API key request header
apiKeyCookie (cookie: api_key)
API key browser cookie
oAuth2 (oauth2)
OAuth 2.0 authentication
openIdConnect (openIdConnect)
OpenID Connect Authentication
Request Body
Image to upload
multipart/form-data
image?The image file to upload
Responses
200Image uploaded
200Image uploaded
Message about an image upload
message?imageUrl?The URL where the uploaded image can be accessed
uploadedAt?Timestamp when the image was uploaded
fileSize?Size of the uploaded image in bytes
mimeType?The content type of the uploaded image
400Bad Request
400Bad Request
RFC 7807 (https://datatracker.ietf.org/doc/html/rfc7807)
type?title?status?detail?403Forbidden
403Forbidden
Error response for forbidden access (RFC 7807). Returned when the user does not have permission to access the requested resource.
type?title?status?detail?404Not Found
404Not Found
Error response for resource not found (RFC 7807). Returned when the requested resource does not exist.
type?title?status?detail?