SmartGare
API referenceEndpoints

Rebuild a consumer's view from the events

Stops the consumer here, empties its view, forgets what it handled, rewinds it to the oldest event the broker keeps and starts it again. Refused while another server's listeners are still in its group, or when no view of it declares how it is emptied. **Required permission:** `platform.projection:rebuild`

POST/platform/v1/projections/{consumer}/rebuild

Stops the consumer here, empties its view, forgets what it handled, rewinds it to the oldest event the broker keeps and starts it again. Refused while another server's listeners are still in its group, or when no view of it declares how it is emptied.

Required permission: platform.projection:rebuild

AuthorizationBearer <token>

In: header

Path Parameters

consumer*string

Response Body

*/*

*/*

curl -X POST "https://example.com/platform/v1/projections/string/rebuild"
{  "consumer": "string",  "forgotten": 0,  "partitions": 0,  "topics": [    "string"  ]}