Update manager
documentedUpdate a manager's assignment for a widget.
POST /api/v1/external/managers/updateManagersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://core.callpage.io/api/v1/external/managers/update" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: {{CALLPAGE_API_KEY}}" \
-d '{ "user_id": {{$user_id}}, "widget_id": {{$widget_id}}, "enabled": {{$enabled}}, "business_times": [ { "day_of_week": 1, "enabled": true, "start_time": "{{$start_time}}", "end_time": "{{$end_time}}" }, { "day_of_week": 2, "enabled": true, "start_time": "{{$start_time}}", "end_time": "{{$end_time}}" }, { "day_of_week": 3, "enabled": false, "start_time": null, "end_time": null } ] }'