---
title: "Adds a pattern to a version of the application."
method: POST
path: "/apps/{appId}/versions/{versionId}/patternrule"
---

# Adds a pattern to a version of the application.

`POST /apps/{appId}/versions/{versionId}/patternrule`

## Path parameters

- `appId` string, uuid, required
- `versionId` string, required

## Request body

- PatternRuleCreateObject — Object model for creating a pattern
  - `pattern` string — The pattern text.
  - `intent` string — The intent's name which the pattern belongs to.

## Response `201`

The created pattern

- PatternRuleInfo — Pattern rule
  - `id` string, uuid — The pattern ID.
  - `pattern` string — The pattern text.
  - `intent` string — The intent's name where the pattern belongs to.

## Other responses

- `default` — Error Response.

---

[API](https://skmtc.net/azure/apis/luis-authoring-client.md) · [All operations](https://skmtc.net/azure/apis/luis-authoring-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/luis-authoring-client/revisions/a26a0f7e5a37/schema)
