Admin API / Mutations
rotateLivestreamEncoderKey
Replaces the active encoder key of a livestream with a new key, and disconnects the encoder that uses the old key. Acts only when encoderKeyId is the active key. Requires the caller to run the show (Livestream.viewer.canProduceShow). A repeat with the same idempotencyKey and input within 24 hours after a success returns that success and replaces no key. An error is not stored, so a repeat after an error runs the rotate again. When the rotate completed but its success was not stored, a repeat returns LivestreamEncoderKeyStaleError, and encoderIngest gives the new key. The livestream of the payload shows the current state, also in a repeat.
Requires a client key with one of these scopes:
admin:livestreams:writeRequires this member role or higher: SELLERrotateLivestreamEncoderKey(
input: RotateLivestreamEncoderKeyInput!
): RotateLivestreamEncoderKeyPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | RotateLivestreamEncoderKeyInput! | The livestream and the key to replace. |