Skip to main content
Manage Actors

Sleep Actor

Put an actor to sleep. The actor runs its shutdown sequence and persists its state, then wakes on the next request.

POST https://api.rivet.dev/actors/{actor_id}/sleep

Examples

Authentication

Send your namespace token as a bearer token in the Authorization header. Every control plane request also requires the namespace query parameter. See Authentication.

Path Parameters

NameTypeRequiredDescription
actor_idstringYesID of the actor.

Query Parameters

NameTypeRequiredDescription
namespacestringYesName of the namespace to operate in.

Request Body

Content type: application/json.

Send an empty JSON object: {}.

Responses

200

{}