End a cast or emergency
end_takeoverEnd a running takeover or emergency on every screen it covers, in one call.
When to use:
Taking down what start_takeover started, early.
When NOT to use:
Changing default content: use set_screen_content.
Calling once per screen: one call ends it everywhere.
What to know:
Screens return to their normal content at once. Ending one that already ended succeeds with alreadyEnded:true; an unknown id fails and lists what is running. Needs screen.cast (emergency-override.create for an emergency).
Parameters:
castId: the castId start_takeover returned, an emergency id (emg_…), the id of the content on screen, or the takeover's exact headline. The last two end every running takeover of it. Find running ones with list_items kind casts or emergencies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| castId | Yes | Takeover id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| castId | No | The cast that was ended. | |
| alreadyEnded | No | true when it had already ended. | |
| screensReleased | No | How many screens went back to normal content. |