Skip to main content
POST
/
consumer-groups
/
{group_id}
/
reset-offsets
Reset Consumer Group Offsets
curl --request POST \
  --url https://api.streamkap.com/consumer-groups/{group_id}/reset-offsets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "topics": [
    "<string>"
  ],
  "strategy": "earliest",
  "timestamp": 123,
  "offset": 123
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

group_id
string
required

Body

application/json

Request body for resetting consumer group offsets.

topics
string[]
required

Topics to reset offsets for

strategy
enum<string>
required

Offset reset strategy

Available options:
earliest,
latest,
timestamp,
offset
timestamp
integer | null

Unix timestamp in ms (for 'timestamp' strategy)

offset
integer | null

Specific offset value (for 'offset' strategy)

Response

Successful Response