# Create an ingestion rule

> Creates a rule mapping a content_type glob to a converter. Exactly one of tool_id or agent_id must be set.

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Create an ingestion rule"}
>
</Heading>

<MethodEndpoint
  method={"post"}
  path={"/api/v1/ingestion-rules"}
  context={"endpoint"}
>
  
</MethodEndpoint>

Creates a rule mapping a content_type glob to a converter. Exactly one of tool_id or agent_id must be set.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails>
  
</ParamsDetails>

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

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