v1

latestSwagger 2.02026-07-17421084.8 KB
actors

call

Invoke an actor method

Call invokes the methodName method of the actor instance indicated by actorType and actorId. The request body must be a (possibly zero-length) JSON array whose elements are used as the actual parameters of the actor method. The result of the call is the result of invoking the target actor method unless the async or promise pragma header is specified. If the actor method returns void or undefined, then a 204 - No Content reponse is returned.

post/v1/actor/{actorType}/{actorId}/call/{methodName}

Path parameters

actorTypestring required

The actor type

actorIdstring required

The actor instance id

methodNamestring required

The actor method to be invoked

Query parameters

sessionstring

The session is an opaque string used by the KAR runtime to enable reentrancy for nested actor calls and to track caller-callee relationships for failure recovery

Headers

Pragmastring

Optionally specify the async pragma to make a non-blocking call. Optionally specify the promise pragma to make a non-blocking call and obtain a request id to query later.

Response

The result of invoking the actor method