try do
     opts = UnkeyElixirSdk.update_remaining(%{
            "keyId": "key_123",
            "op": "increment",
            "value": 1
            })

    catch
        err ->
          Logger.error(err)
      end
%{"remaining"=> 100}
@spec update_remaining(map()) :: :ok
Updates the remaining value for a specified key.

Request

keyId
string
required
The ID of the key you want to modify.
op
increment | decrement | set
The operation you want to perform on the remaining count.Available options: “increment” | “decrement” | “set”
value
integer | nil
The value you want to set, add or subtract the remaining count by

Response

remaining
integer | nil
required
The updated remaining value.
   try do
     opts = UnkeyElixirSdk.update_remaining(%{
            "keyId": "key_123",
            "op": "increment",
            "value": 1
            })

    catch
        err ->
          Logger.error(err)
      end
%{"remaining"=> 100}