Skip to navigation

Commit a consumer group checkpoint

Records a consumer group’s position at cursor for the partitions that cursor covers, and renews the lease.

Both happen only while your fencingToken still holds every one of those partitions. Only an application token can call this operation. See the event feed.

Errors

  • 400 INVALID_CURSOR — the cursor was issued to another application.
  • 409 STALE_FENCING_TOKEN — another member took one of the partitions over. Stop, and lease again.
  • 409 NOT_LEASED — the cursor covers a partition this group never leased.

Authentication

AuthorizationBearer

OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.

Request

This endpoint expects an object.
consumerstringRequiredformat: "^[A-Za-z0-9._:-]{1,64}$"
cursorstringRequired1-512 characters

A cursor from this application’s feed (an item’s cursor or a page’s nextCursor).

fencingTokenstringRequiredformat: "^[1-9][0-9]{0,15}$"

A consumer-group member’s fencing token: a positive integer, sent and returned as a decimal string. It is opaque and specific to your application, so compare tokens only for equality, never by size. A takeover issues a new one, and a renewal or a commit under a superseded one is refused with 409 STALE_FENCING_TOKEN.

Response headers

X-Request-IdstringOptionalformat: "^[A-Za-z0-9._-]{1,128}$"
The request's id, echoed from your request or generated by EVVA. Quote it when you report a problem.

Response

Committed; the lease is renewed.

consumerstring
leaseExpiresAtdatetime
The renewed lease.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error