Skip to content
The Yoto Developer Challenge is on, with $10,000 to win!

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

Responses

201 Created application/json
cardsarray
[items]object
availabilitystring
cardIdstring
contentobject
activitystring
chaptersarray
[items]object
ambient
defaultTrackAmbient
defaultTrackDisplay
displayobject
durationnumber
fileSizenumber
hasStreamsboolean
keystring
overlayLabelstring
overlayLabelOverride
tracksarray
[items]object
ambient
display
formatstring
keystring
overlayLabelstring
overlayLabelOverride
titlestring
trackUrlstring
transitionsobject
typestring
configobject
onlineOnlyboolean
editSettingsobject
autoOverlayLabelsstring
editKeysboolean
versionstring
createdAtstring
metadataobject
authorstring
categorystring
coverobject
imageLstring
descriptionstring
mediaobject
durationnumber
fileSizenumber
hasStreamsboolean
statusobject
namestring
updatedAtstring
slugstring
sortkeystring
titlestring
updatedAtstring
userIdstring
createdAtstring
familyIdstring
idstring
imageIdstring
imageUrlstring
itemsarray
[items]object
addedAtstring
contentIdstring
lastModifiedAtstring
namestring

Body application/json

imageId string
Example fp-cards
items array
Example [{"contentId":"37KwQ"}]
name string
Example My Favourites
POST
/card/family/library/groups
Server URL: https://api.yotoplay.com
Authorization (bearerAuth)
Request Body
Terminal window
curl "https://api.yotoplay.com/card/family/library/groups"
--header "Authorization: Bearer [YOUR_TOKEN]"