upload a family image
Upload an image for a family for use across various features in Yoto. Currently this is only in use when uploading a group image in the app card library, but could be used by other features in future.
-
The image must be sent as a binary format
-
The image can be no bigger than 8mb in size. Anything larger will return a
400 Bad Request
. -
There are no restrictions for the resolution or aspect ratio of the image
-
Only the following types of images are supported: JPEG, GIF, PNG
-
A family can upload no more than 500 images. Once this limit is reached a
400 Bad Request
is returned for subsequent upload attempts.
If uploaded successfully a 200 OK
is returned with a body showing:
-
The Id of the image (the SHA256 checksum for the file)
-
A URL to the 'get a family image' endpoint for the image. Note
width
andheight
params will need to be appended to retrieve an image with your required dimensions.
If the same image is uploaded more than once, it will be matched via the SHA256 checksum to avoid duplicates.