---
title: "Changes to Create a rule"
method: POST
path: "/groups/{groupId}/apps/{appId}/services/{serviceId}/rules"
---

# Changes to Create a rule

`POST /groups/{groupId}/apps/{appId}/services/{serviceId}/rules`

> Every recorded change to this endpoint, newest first.

## Timeline

Changed in 1 of 50 revisions.

- **2024-02-20** (v3) `e2240dd053bd` — 2 breaking, 5 warning

## Changes

- **2024-02-20** (v3) `e2240dd053bd` — 2 breaking, 5 warning
  - added `#/components/schemas/RuleConstructor, subschema #1` to the `oneOf[#/components/schemas/Rule]/` request property `allOf` list
  - the `oneOf[#/components/schemas/Rule]/` request property type changed from `object` to no type
  - removed the request property `oneOf[#/components/schemas/Rule]/_id`
  - removed the request property `oneOf[#/components/schemas/Rule]/collection`
  - removed the request property `oneOf[#/components/schemas/Rule]/database`
  - removed the request property `oneOf[#/components/schemas/Rule]/filters`
  - removed the request property `oneOf[#/components/schemas/Rule]/roles`

---

[Operation](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/docs/groups/:groupId/apps/:appId/services/:serviceId/rules/post.md) · [API](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api.md) · [Page](https://skmtc.dev/mongodb/apis/mongodb-atlas-app-services-admin-api/changes/groups/:groupId/apps/:appId/services/:serviceId/rules/post)
