# Create a memory rule

> Creates an ingestion rule on a memory store. POST /api/v1/memory-rules in the SOAT REST API.

Creates an ingestion rule on a memory store. With neither `agent_id` nor `tool_id` the built-in extractor runs, configurable through `prompt`, `ai_provider_id` and `model`.

  Request

<RequestSchema
  {...require("./create-memory-rule.RequestSchema.json")}
>

<StatusCodes
  {...require("./create-memory-rule.StatusCodes.json")}
>
