Sync the PCR notice subscription
Makes the tenant’s connection have one notice subscription at the PCR. It delivers to noticeEndpointUrl, the notice address of the current token, with the event types collections consumes and without personal data (includePii false).
Providers: Lerian (PCR).
How it works
- The answer is the subscription as stored afterwards. The signing secret is never returned or logged.
- Without a subscription, or with one the PCR no longer has, the subscription is created. The PCR issues a new secret, recorded with a new connection token, so
connectionTokenandnoticeEndpointUrlchange as in a rotation. - A subscription that differs from what is expected (address, event types, personal data or state) is changed at the PCR. Examples: one paused at the PCR, or one left at the previous address by an interrupted rotation.
- A subscription held in another state goes back to
ACTIVE. It is recordedDIVERGENTif the PCR still holds it otherwise. One that matches is recordedSYNCED. - This endpoint never changes the secret of an existing subscription. Use
POST /v1/collections/connection/subscription/secret-rotationfor that. - A pending creation (
pendingOperation) is finished by this request. A pending rotation is finished by this request or by repeating the rotation. Each keeps its own token and PCR idempotency key, so the PCR returns the secret it already issued, within 24 hours ofpendingSince. - A creation pending for longer starts over. A rotation pending for longer is refused with
PBP-0802. Only a newPOST /v1/collections/connection/subscription/secret-rotationfinishes it, as it finishes a rotation whose key the PCR refused (PCR-0006). - A failure of the PCR, or of the host’s record of notice connections, is recorded on the subscription (
syncStateSYNC_FAILED, problem inlastSyncError). It is answered as that problem:422PBP-0815,503PBP-0816or503PBP-0817. - A rotation this request finishes, whose new connection the host recorded, returns
200even when its address did not move, withSYNC_FAILEDas recorded. - Every synchronization that succeeds, or that finishes a rotation, is recorded in the collections audit trail, with its
reasonand the identity that asked.
POST
Sync the PCR notice subscription
Encabezados
Cuerpo
application/json
Respuesta
OK. The subscription as stored afterwards.
How the subscription at the PCR compares with what collections expects. NOT_SUBSCRIBED: no subscription. SYNCED: address, event types and state match. DIVERGENT: the PCR holds it differently, for example paused or changed in the PCR's own console. SYNC_FAILED: the last attempt failed (lastSyncError).
Opciones disponibles:
NOT_SUBSCRIBED, SYNCED, DIVERGENT, SYNC_FAILED Ejemplo:
"NOT_SUBSCRIBED"

