Admin API / Types

UpdateLivestreamInput

Input

Changes to one livestream. An omitted field keeps its value. Null in a field, an input with no field to change, or both thumbnailFileUrl and thumbnailId fail with VALIDATION_ERROR.

input UpdateLivestreamInput

Input fields

FieldTypeDescription
collectionIds[ID!]Replaces the memberships of the livestream in the manual livestream collections that the caller can manage. A membership in another collection stays. [] removes the memberships that the caller can manage. 0 to 100 unique IDs; a duplicate or more than 100 fails with VALIDATION_ERROR. A missing, deleted, automated or listing collection gives CollectionsNotAssignableError. An ADMINS_ONLY collection gives UnauthorizedError with requiredRole: ADMIN to a caller below the ADMIN role. A value that is not null also needs the client scope admin:collections:write; without it the call fails with error code FORBIDDEN.
isMatureBooleanTrue: the livestream is mature content.
isReplayVisibleBooleanTrue: the storefront shows the replay of the ended livestream while a recording exists. False hides it.
livestreamIdID!The livestream to change.
startAtDateTimeThe scheduled start. Only a SCHEDULED livestream accepts it; at another status it gives LivestreamStateConflictError. A time more than 5 minutes before now fails with VALIDATION_ERROR, also in a repeat of an earlier input.
thumbnailFileUrlURLThe public URL of a PUBLIC District files image: File.url with access: PUBLIC in District API. Any last path segment is accepted. The livestream stores its own copy of the 4096-pixel rendition on the marketplace image host, so a later change to the file in District files does not change the thumbnail. Not with thumbnailId: VALIDATION_ERROR. When District files does not answer the check or the copy fails, the mutation fails with error code MEDIA_FILE_CHECK_FAILED and writes nothing; send the same request again.
thumbnailIdIDAn image that the caller owns, or the ID of the current thumbnail in thumbnailMedia, which changes nothing. The thumbnail cannot be removed.
titleStringTrimmed. 1 to 255 characters; another length fails with VALIDATION_ERROR.
visibilityLivestreamVisibilityHow the storefront lists the livestream.