how can I update a dispatch rule to remove the pin...
# ask-ai
m
how can I update a dispatch rule to remove the pin requirement?
t
Thanks for reaching out, Kush. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! To update a dispatch rule and get rid of the pin requirement, you’ve got a couple of easy options: 1. Update Specific Fields (Recommended): You can use the
UpdateSIPDispatchRuleFields
API to tweak just the parts you need. For example, set the
pin
field to an empty string or simply leave it out. This way, you remove the pin without messing with the rest of your settings. 2. Replace the Entire Dispatch Rule: Alternatively, use the
UpdateSIPDispatchRule
API to swap out the whole rule with a new one that doesn’t have a pin field. If you want me to walk you through the steps or help with either method, just give me a shout! Sources: SIP dispatch rule | LiveKit Docs | packages/livekit-server-sdk/src/SipClient.ts | livekit-api/livekit/api/sip_service.py
m
Give me an example of the UpdateSIPDispatchRuleFields command
t
Here's a simple example of how to use the
UpdateSIPDispatchRuleFields
command to remove the pin requirement:
Copy code
{
  "name": "My updated dispatch rule",
  "rule": {
    "dispatchRuleDirect": {
      "roomName": "my-room"
    }
  }
}
By leaving out the
pin
field in this example, the pin requirement gets removed. You can use this JSON setup with the LiveKit CLI or SDKs to update your dispatch rule easily. If you want a hand running this command or have any questions, just give me a shout—I’m here to help!