Skip to main content

put

Performs a PUT request with a JSON payload and automatic error handling. Throws HomunculusApiError on non-OK responses.

Parameters

ParameterTypeDescription
urlURLThe URL to send the PUT request to
bodyB (optional)Request body that will be JSON-serialized

Returns

Promise<Response>

Example

await host.put(host.createUrl("vrm/123/state"), { state: "idle" });