POST Acknowledge
Sending an Acknowledgement request will update the offset/position of processing messages in the topic queue. Acknowledgement is set by the offset parameter and will acknowledge messages up to right before the offset.
If you do not acknowledge the message, the start of the next session will result in messages starting at the beginning of the queue. When acknowledging, you should send the current offset + 1. If you simply acknowledge the current offset, you will repeat the last message when a new connection is created.
Remember: Acknowledgements are reflected at the start of a new session. Acknowledging a message does not move the current session's position. To start polling from the latest acknowledged offset, let the current session expire (sessions expire 5 minutes after the last poll) and then execuse a new poll request — the new session will resume from the latest acknowledged position.
Request
POST {pubUrl}/api/rest/v1/publication/acknowledge
Authorization: Bearer {{token}}
Content-Type: application/json
[
{
"Name": "data",
"Offset": 3
}
]Response
204 OK
...
Content-Type: application/json; charset=utf-8
Connection: close