You can pass all configuration headers to override the configuration of the original messages.For example, if the retry count of the original messages is 5, you can set it to 0 for the retried messages by passing
Upstash-Retries: 0 header to this request.
Check out publish documentation for complete list of configuration options you can pass.