Back to Rivet

ActorsGetOrCreateApi

engine/sdks/rust/api-full/rust/docs/ActorsGetOrCreateApi.md

2.3.21.7 KB
Original Source

\ActorsGetOrCreateApi

All URIs are relative to http://localhost

MethodHTTP requestDescription
actors_get_or_createPUT /actors## Datacenter Round Trips

actors_get_or_create

models::ActorsGetOrCreateResponse actors_get_or_create(namespace, actors_get_or_create_request)

Datacenter Round Trips

If actor exists 2 round trips: - namespace::ops::resolve_for_name_global - GET /actors/{} If actor does not exist and is created in the current datacenter: 2 round trips: - namespace::ops::resolve_for_name_global - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation) If actor does not exist and is created in a different datacenter: 3 round trips: - namespace::ops::resolve_for_name_global - POST /actors to remote datacenter - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation) actor::get will always be in the same datacenter. ## Optimized Alternative Routes

Parameters

NameTypeDescriptionRequiredNotes
namespaceString[required]
actors_get_or_create_requestActorsGetOrCreateRequest[required]

Return type

models::ActorsGetOrCreateResponse

Authorization

bearer_auth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]