Update Multiple Groups
documentedUpdate multiple groups in a batch.
PUT /api/organizations/{org_id}/groups/multiGroupsno 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://watershedlrs.com/api/organizations/{{$org_id}}/groups/multi" \
-X PUT \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '[{"name": "{{$group1_name}}", "type": {"id": {{$group1_type_id}}}, "customId": "{{$group1_custom_id}}", "description": "{{$group1_description}}", "peopleIds": [{{$group1_people_id1}}, {{$group1_people_id2}}]}, {"name": "{{$group2_name}}", "type": {"id": {{$group2_type_id}}}, "customId": "{{$group2_custom_id}}", "description": "{{$group2_description}}", "peopleIds": [{{$group2_people_id1}}]}]'