<!--
{
  "availability" : [
    "Retention Messaging API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RetentionMessaging",
  "identifier" : "/documentation/RetentionMessaging/MessageNotApprovedError",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Retention Messaging API"
    ],
    "preciseIdentifier" : "data:retention_messaging:MessageNotApprovedError"
  },
  "title" : "MessageNotApprovedError"
}
-->

# MessageNotApprovedError

An error that indicates the message isn’t in the approved state, so you can’t configure it as a default message.

```
object MessageNotApprovedError
```

## Overview

The [`Configure Default Message`](/documentation/RetentionMessaging/Configure-Default-Message) endpoint returns this error if the [`messageIdentifier`](/documentation/RetentionMessaging/messageIdentifier) doesn’t have an [`imageState`](/documentation/RetentionMessaging/imageState) of `APPROVED`. To determine the current state of a message, see [`Get Message List`](/documentation/RetentionMessaging/Get-Message-List).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)