Restore message

Overview

You can use the Restore Message filter to restore message content at runtime using a specified selector expression. You can restore the contents of a request message or a response message, depending on where the filter is placed in the policy.

For example, you could use this filter to restore original message content if you needed to manipulate the message for authentication or authorization. Typically, this filter is used with the Store Message filter, which is first used to store the original message content. For more details, see Store message.

Configuration

Name:
Enter a suitable name for this filter to display in a policy.

Selector Expression to retrieve message:
Enter the selector expression used to restore the message content. Defaults to ${store.content.body}. For more details on selector expressions, see Select configuration values at runtime in the API Gateway Policy Developer Guide.

Related Links