type.hash.set
0.000001

Sets the value of a key.

Arguments
keyrequired
The key to set the value for.
valuerequired
The value to set for the key.
Return Value
The updated hash with the given key-value.
something went wrong :(
Setting the value for a key
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.hash.set.call(
  {}, key: "greeting", value: "hello"
)
client.type.hash.set.call(
  {}, {key: "greeting", value: "hello"}
);
curl "https://proc.run/type/hash/set?key=greeting&value=hello" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '{}'
 

{"greeting": "hello"}


Stuck? Want to chat about an idea? Join the community on Discord.