> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/miscellaneous/llms.txt)
> Source: https://docs.saleor.io/api-reference/miscellaneous/inputs/app-problem-create-input

# AppProblemCreateInput Input Type

No description

```graphql
input AppProblemCreateInput {
  message: String!
  key: String!
  criticalThreshold: PositiveInt
  aggregationPeriod: Minute
}
```

<a id="fields"></a>

### Fields

<a id="message"></a>

#### [`message`](#message) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The problem message to display. Must be at least 3 characters. Messages longer than 2048 characters will be truncated to 2048 characters with '...' suffix.

<a id="key"></a>

#### [`key`](#key) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

Key identifying the type of problem. App can add multiple problems under the same key, to merge them together or delete them in batch. Must be between 3 and 128 characters.

<a id="critical-threshold"></a>

#### [`criticalThreshold`](#critical-threshold) ● [`PositiveInt`](/api-reference/miscellaneous/scalars/positive-int.md)

If set, the problem becomes critical when count reaches this value. If sent again with higher value than already counted, problem can be de-escalated.

<a id="aggregation-period"></a>

#### [`aggregationPeriod`](#aggregation-period) ● [`Minute`](/api-reference/miscellaneous/scalars/minute.md)

Time window in minutes for aggregating problems with the same key. Defaults to 60. If 0, a new problem is always created.

<a id="member-of"></a>

### Member Of

[`appProblemCreate`](/api-reference/apps/mutations/app-problem-create.md) mutation
