Is it possible to pass a JSON object as a metadata...
# ask-ai
h
Is it possible to pass a JSON object as a metadata value into
lk dispatch create
cli command?
t
Thanks for reaching out, Slava. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, it is possible to pass a JSON object as a metadata value into the
lk dispatch create
CLI command. To do this, you need to escape the quotes within the JSON string. For example:
Copy code
lk dispatch create \
--new-room \
--agent-name outbound-caller \
--metadata "{\"key\": \"value\", \"another_key\": true}"
This ensures the JSON object is properly formatted and recognized by the command. Sources: Making calls using SIP | LiveKit Docs | SIP dispatch rule | LiveKit Docs