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

# ImageNotApprovedError

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

```
object ImageNotApprovedError
```

## Overview

The [`Configure Default Message`](/documentation/RetentionMessaging/Configure-Default-Message) endpoint returns this error if the image that’s associated with the [`messageIdentifier`](/documentation/RetentionMessaging/messageIdentifier) doesn’t have an [`imageState`](/documentation/RetentionMessaging/imageState) of `APPROVED`.

---

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)