Skip to main content
Inspector

Patch State

Replace the actor's current state.

The inspector API is subject to change without notice. Do not build production integrations on it.

This writes state directly and bypasses actor actions. Use it only for inspection and recovery.

PATCH https://rivet.example.com/gateway/{actor}/inspector/state

Examples

Authentication

Inspector endpoints do not accept namespace tokens. Send the actor’s inspector token as a bearer token in the Authorization header.

Path Parameters

NameTypeRequiredDescription
actorstringYesActor ID, actor ID with an inline token ({actor_id}@{token}), or actor name combined with the rvt-* query parameters.

Headers

NameTypeRequiredDescription
AuthorizationstringNoBearer token for inspector authentication. Required in production, optional in development.

Actor Selector

{actor} accepts an actor ID, an actor ID with an inline routing token ({actor_id}@{token}), or an actor name combined with the rvt-* query parameters below. See Actor Routing for the full rules.

Request Body

Content type: application/json (optional).

FieldTypeRequiredDescription
stateanyYes

Responses

200

The state was saved.

FieldTypeDescription
okboolean
{
  "ok": true
}

401

The inspector token is missing or invalid.