Update subscriptions

Dynamically update subscriptions.

You can dynamically update your subscriptions sending a PATCH request to /subs/:agent-id/:subscription-id, where :agent-id is the identifier of the agent and :subscription-id is the identifier of your subscription.

curl \
-X PATCH \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H 'accept: application/json' \
-H 'content-type: application/json' \
-d '[
  { "op": "replace", "path": "/args/senders/0", "value": "5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y" },
  { "op": "add", "path": "/args/destinations/-", "value": "urn:ocn:polkadot:2000" },
  { "op": "add", "path": "/channels/-", "value": { "type": "websocket" } }
]' \
https://api.ocelloids.net/subs/<AGENT_ID>/<SUBSCRIPTION_ID>

The request expects an RFC 6902 JSON patch external link payload.