create a group
-
The contextual family is the authorised user's family.
-
There is a limit of 20 groups per family (anything over returns 400 Bad Request
group-limit
). -
The content Id's in
items
must be part of the family's library (any that aren't are filtered out). -
items
is an Array - ordering is retained as provided upon create or update of a group. -
items
can be an empty Array (families can have groups without content). -
Content can be added to as many groups as a family is allowed. A piece of content will only be stored and show once in a group (duplicate content is removed).
-
Groups can have the same name. The name is UTF-8 so supports any unicode characters. There is a limit of 100 characters for the name (anything over 100 is truncated).
ImageIds
An imageId
can either be set to a pre-made image ID, or an uploaded image ID.
Uploaded imageId
This is the ID returned after uploading an image to the Media API via the 'upload a family image' endpoint. The resulting imageUrl
generated for these images will be a URL pointing to the 'get a family image' endpoint for the imageId
which redirects to a signed S3 URL.
e.g.
https://api.yotoplay.com/media/family/images/{imageId}
https://api.yotoplay.com/media/family/images/1afea16db1aeb62f8ba84cdb191eee7c1dd734d23098b4756717c3e2bded8c6a