How to pass multiple components in curl to update for a subscriber? I am able to update a single component (component_ids[]="xxxx") or all components (exclude component_ids)
curl https://api.statuspage.io/v1/pages/{page_id}/subscribers/{subscriber_id} \ -H "Authorization: OAuth your-api-key-goes-here" \ -X PATCH \ -d "component_ids[]=your-id"
Hey Balamurugan,
Thanks for reaching out to Atlassian Community.
Here's a working example from my lab that should help you:
curl -L -X PATCH 'https://api.statuspage.io/v1/pages/yourpageid/subscribers/yoursubid' -H 'Authorization: yourapikey' -H 'Content-Type: application/json' --data-raw '{
"component_ids": [
"xr3tmgfjj3k5", "t06mlw5gnz7f", "rkg1l8330g82"
]
}'
Please let me know if you got any further questions.
Best Regards,
Egor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.