---
title: "POST /v1/cursor/{+subscription}:commitCursor"
method: POST
path: "/v1/cursor/{+subscription}:commitCursor"
tags: ["cursor"]
---

# POST /v1/cursor/{+subscription}:commitCursor

`POST /v1/cursor/{+subscription}:commitCursor`

Updates the committed cursor.

## Path parameters

- `subscription` string, required

## Request body

- CommitCursorRequest — Request for CommitCursor.
  - `partition` string, int64 — The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).
  - `cursor` Cursor — A cursor that describes the position of a message within a topic partition.
    - `offset` string, int64 — The offset of a message within a topic partition. Must be greater than or equal 0.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/pubsublite.md) · [All operations](https://skmtc.dev/google/apis/pubsublite/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/pubsublite/revisions/d973df9a0149/schema)
