Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Subscribe multiple components through API

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"

 

1 answer

1 accepted

0 votes
Answer accepted
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 31, 2023 • edited

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

It works. Thank you @Egor 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events