Admin API / Types
UpdateLivestreamInput
InputChanges 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 UpdateLivestreamInputInput fields
| Field | Type | Description |
|---|---|---|
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. |
isMature | Boolean | True: the livestream is mature content. |
isReplayVisible | Boolean | True: the storefront shows the replay of the ended livestream while a recording exists. False hides it. |
livestreamId | ID! | The livestream to change. |
startAt | DateTime | The 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. |
thumbnailFileUrl | URL | The 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. |
thumbnailId | ID | An image that the caller owns, or the ID of the current thumbnail in thumbnailMedia, which changes nothing. The thumbnail cannot be removed. |
title | String | Trimmed. 1 to 255 characters; another length fails with VALIDATION_ERROR. |
visibility | LivestreamVisibility | How the storefront lists the livestream. |