POST /consumers/{string: group_name}/instances/{string: instance_id}/positions/beginning
Seek to the first offset for each of the given partitions.
Parameters
Parameter | Description |
---|---|
group_name (string) | Name of the consumer group. |
instance (string) | ID of the consumer instance. |
partitions | A list of partitions. |
partitions[i].topic (string) | Name of the topic |
partitions[i].partition (int) | Partition ID |
Syntax
http://<host>:8082/consumers/<group_name>/instances/<consumer_name>/positions/beginning
Request Example
curl -X POST -H "Content-Type: application/vnd.kafka.v2+json" --data
'{"partitions": [{"topic": "/stream:first","partition": 0}]}'
https://localhost:8082/consumers/grouptest/instances/user/positions/beginning
Response Example
HTTP/1.1 204 No Content