TwitchApi.Moderation.UpdateAutoModSettings (TwitchApi v0.1.3) View Source
⛔ This module is autogenerated please do not modify manually.
Example request from twitch api docs:
descriptions:
This example updates the overall_level setting to 3. Notice in the response that not all settings are set to level 3.
requests:
curl -X PUT 'https://api.twitch.tv/helix/moderation/automod/settings?broadcaster_id=1234&moderator_id=5678'
-H'Authorization: Bearer 4a4x78f5wqvkybms7mxfist3jmzul'
-H'Client-Id: t214nt8z1rdtbj69hyarjvh5mi6fh'
-H 'Content-Type: application/json'
-d'{"overall_level":3}'
Example response from twitch api docs:
descriptions:
If overall_level is set to 3 and you try to change swearing to 2, all other settings are set to 0. If the goal was to change the swearing setting and leave all the others unchanged, the request must have included all the other settings as well.
responses:
{"data":[{"broadcaster_id":"1234","moderator_id":"5678","overall_level":null,"disability":0,"aggression":0,"sexuality_sex_or_gender":0,"misogyny":0,"bullying":0,"swearing":2,"race_ethnicity_or_religion":0,"sex_based_terms":0}]} swearing swearing overall_level {"data":[{"broadcaster_id":"1234","moderator_id":"5678","overall_level":3,"disability":3,"aggression":3,"sexuality_sex_or_gender":3,"misogyny":3,"bullying":2,"swearing":0,"race_ethnicity_or_religion":3,"sex_based_terms":3}]} overall_level
Link to this section Summary
Types
The ID of the broadcaster whose AutoMod settings you want to update.
The ID of a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID associated with the user OAuth token.If the broadcaster wants to update their own AutoMod settings (instead of having the moderator do it), set this parameter to the broadcaster’s ID, too.
Link to this section Types
Specs
broadcaster_id() :: %{broadcaster_id: String.t()}
The ID of the broadcaster whose AutoMod settings you want to update.
Specs
moderator_id() :: %{moderator_id: String.t()}
The ID of a user that has permission to moderate the broadcaster’s chat room. This ID must match the user ID associated with the user OAuth token.If the broadcaster wants to update their own AutoMod settings (instead of having the moderator do it), set this parameter to the broadcaster’s ID, too.
Link to this section Functions
Specs
call(broadcaster_id() | moderator_id()) :: {:ok, Finch.Response.t()} | {:error, Exception.t()}
Description:
Updates the broadcaster’s AutoMod settings.
Required authentication:
Required authorization:
Requires a User access token with scope set to moderator:manage:automod_settings.