I'm attempting to follow the instructions at https://github.com/triggerdotdev/trigger.dev/tree/main/apps/supervisor to create worker groups for each of my trigger supervisors to connect. I am getting an error but it is unclear how I can make my user an admin. It was the first user that logged into the system. Any help is greatly appreciated.
{
"error": "You must be an admin to perform this action"
}
api_url=http://localhost:3030
wg_name=my-worker
edit this
admin_pat=tr_pat_...
curl -sS
-X POST
"$api_url/admin/api/v1/workers"
-H "Authorization: Bearer $admin_pat"
-H "Content-Type: application/json"
-d "{"name": "$wg_name"}"