I have created a Watson Assistant service and created a simple action bot. My aim is to control the amount of user that can access the service monthly. Checking on the API Docs I found out that is possible to update my environment to disable my action skill and block users to use the bot. However I am facing some issues regarding API use.
I have created a version and deploy it on my live environment. I tried to update my draft and live environment with this API:
/v2/assistants/{assistant_id}/environments/{environment_id}
{
"skill_references": [{
"skill_id": "my skill id",
"type": "action",
"disabled": true,
"snapshot": "2",
"skill_reference": "actions skill"
}]
}
I am getting the following response:
{
"error": "Data Exception: Skill References can not be deleted. The cardinality of the skill_references (1) is less than expected: (2)",
"code": 400
}
Do you guys know if I can disabled my live or draft environment or have any idea on how to make the service unavailable after hit the maximum amount of user?