Missed Team ’24? Catch up on announcements here.

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

Why does the components list amount differ in similar API queries

David Bjorgen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2024

I'm attempting to determine whether a user is subscribed to one or more components. When I use the endpoint for getting a list of subscribers with a q parameter, a huge list of components (maybe 50 or so) are displayed for the resultant user.

curl https://api.statuspage.io/v1/pages/{page_id}/subscribers \
-H "Authorization: OAuth your-api-key-goes-here" \
-X GET
-d  'q="ijones@indy.com"'

However, when I use the endpoint for getting a singe subscriber, only one component is listed for the user (which is the only component selected in the admin panel).

curl https://api.statuspage.io/v1/pages/{page_id}/subscribers/{subscriber_id} \
-H "Authorization: OAuth your-api-key-goes-here" \
-X GET

Since both queries result in a single user, why do the amount of components differ for each query? 

1 answer

0 votes
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 22, 2024

Hey David, 
Thanks for reaching out to Atlassian Community! 

I've done a few tests trying to reproduce the same behavior as you described, but in both cases, I get all of the subscribed components. 

May I ask you please to open a ticket with us, so that we can check it together? Here's the link - https://support.atlassian.com/contact/ 

Best Regards,
Egor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events