POST /consumers/{string: group_name}/instances/{string: instance_id}/positions

Overrides the fetch offsets that the consumer will use for the next set of records to fetch.

Parameters

Table 1. Parameters
Parameter Description
group_name (string) Name of the consumer group.
instance (string) ID of the consumer instance.
offsets A list of offsets
offsets[i].topic (string) Name of the topic
offsets[i].partition (int) Partition ID
offsets[i].offset (int) Seek to offset for the next set of records to fetch.

Syntax

http://<host>:8082/consumers/<group_name>/instances/<consumer_name>/positions

Request Example

curl  -X POST -H "Content-Type: application/vnd.kafka.v2+json" --data  
'{"offsets": [{"topic": "/stream:first","partition": 0,"offset":3}]}' 
https://localhost:8082/consumers/grouptest/instances/user/positions

Response Example

HTTP/1.1 204 No Content