{
"company": "<company_code>",
"channel_id": "<livechat_channel_id>"
}BASE_URL='https://uat-chatbot.airudder.com'
export QI_KEY='<QI Key>'
export QI_SECRET='<QI Secret>'
export BODY='{"company":"<company_code>","channel_id":"<livechat_channel_id>"}'
SIGN="$(python3 -c 'import hashlib,hmac,os; print(hmac.new(os.environ["QI_SECRET"].encode(), os.environ["BODY"].encode(), hashlib.sha256).hexdigest())')"
curl --request POST "${BASE_URL}/api/v1/channel/airudder/qi/account/enable" \
--header 'Content-Type: application/json' \
--header "X-AIRudder-Sign-Key: ${QI_KEY}" \
--header "X-AIRudder-Sign: ${SIGN}" \
--data-binary "${BODY}"{
"request_id": "example-request-id",
"code": 200,
"message": "Success",
"data": {
"company": "<company_code>",
"channel": "LiveChat",
"channel_id": "<livechat_channel_id>",
"env": "uat",
"changed": true
}
}