---
title: "Changes to POST /guilds/{guild_id}/auto-moderation/rules"
method: POST
path: "/guilds/{guild_id}/auto-moderation/rules"
---

# Changes to POST /guilds/{guild_id}/auto-moderation/rules

`POST /guilds/{guild_id}/auto-moderation/rules`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 2 of 58 revisions.

- **2026-06-05** `693bf1f99bba` — 9 breaking, 10 info
- **2026-01-13** `570f63561dec` — 4 info

## Changes

- **2026-06-05** `693bf1f99bba` — 9 breaking, 10 info
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/DefaultKeywordListUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/KeywordUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/MLSpamUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/MentionSpamUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - added `#/components/schemas/UserProfileRuleResponse` to the response body `oneOf` list for the response status `200`
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/DefaultKeywordRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/KeywordRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/MLSpamRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/MentionSpamRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - added `#/components/schemas/UserProfileUpsertRequest` to the request body `oneOf` list
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/DefaultKeywordListUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/KeywordUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/MLSpamUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - added `subschema #5: USER_PROFILE` to the `oneOf[#/components/schemas/MentionSpamUpsertRequest]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` request property `oneOf` list
  - removed `#/components/schemas/SpamLinkRuleResponse` from the response body `oneOf` list for the response status `200`
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/DefaultKeywordRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/KeywordRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/MLSpamRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
  - removed `subschema #2: SPAM_LINK` from the `oneOf[#/components/schemas/MentionSpamRuleResponse]/trigger_type/allOf[#/components/schemas/AutomodTriggerType]/` response property `oneOf` list for the response status `200`
- **2026-01-13** `570f63561dec` — 4 info
  - the `oneOf[#/components/schemas/DefaultKeywordListUpsertRequest]/actions/items/oneOf[#/components/schemas/BlockMessageAction]/metadata/oneOf[#/components/schemas/BlockMessageActionMetadata]/custom_message` request property's maxLength was increased from `150` to `300`
  - the `oneOf[#/components/schemas/KeywordUpsertRequest]/actions/items/oneOf[#/components/schemas/BlockMessageAction]/metadata/oneOf[#/components/schemas/BlockMessageActionMetadata]/custom_message` request property's maxLength was increased from `150` to `300`
  - the `oneOf[#/components/schemas/MLSpamUpsertRequest]/actions/items/oneOf[#/components/schemas/BlockMessageAction]/metadata/oneOf[#/components/schemas/BlockMessageActionMetadata]/custom_message` request property's maxLength was increased from `150` to `300`
  - the `oneOf[#/components/schemas/MentionSpamUpsertRequest]/actions/items/oneOf[#/components/schemas/BlockMessageAction]/metadata/oneOf[#/components/schemas/BlockMessageActionMetadata]/custom_message` request property's maxLength was increased from `150` to `300`

---

[Operation](https://skmtc.dev/discord/apis/discord-http-api-preview/docs/guilds/:guild_id/auto-moderation/rules/post.md) · [API](https://skmtc.dev/discord/apis/discord-http-api-preview.md) · [Page](https://skmtc.dev/discord/apis/discord-http-api-preview/changes/guilds/:guild_id/auto-moderation/rules/post)
