I'd like to remove a component from its group via the API. I'm trying to do this by using PATCH on the specific component's URL. Here's the cUrl I'm trying:
curl -v https://api.statuspage.io/v1/pages/$PAGE_ID/components/$COMPONENT_ID \
-H "Authorization: OAuth $STATUSPAGE_AUTH_TOKEN" \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"component":{"group_id":null}}'
However, this gives the following error:
{"error":"Couldn't find GroupComponent"}I also tried setting the `group_id` to `""` but that gave the same result. What do I actually need to do to achieve this?
I'd like to avoid using the component-groups/ API methods if possible as this way is more convenient. You can set a component's group in the UI page for that particular component so I don't see why the API should be any different.