v1

latestOpenAPI 3.0.12026-07-24110189356.6 KB
stream

Seek to predefined offset.

Enables you to start reading data from a specified offset. You can move the message pointer to any offset in the layer (topic). Message consumption will start from that offset. Once you seek to an offset, there is no returning to the initial offset, unless the initial offset is saved. The base path to use is the value of 'nodeBaseURL' returned from /subscribe POST request.

put/layers/{layerId}/seek

Path parameters

layerIdstring required

The ID of the parent layer for this blob.

Query parameters

subscriptionIdstring

The subscriptionId received in the response of the /subscribe request (required if mode=parallel).

mode'serial' | 'parallel'

The subscription mode of this subscriptionId (as provided in /subscribe POST API).

Request body

Example request

{
  "offsets": [
    {
      "partition": 7,
      "offset": 38562
    }
  ]
}

Response

OK, seek successful