Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

REST API Query parameters not working for events endpoint (/admin/v1/orgs/{orgId}/events)

kumarak
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!
October 21, 2021

The REST API calls with query parameter `to` and `from` does not return any results for the events endpoint (/admin/v1/orgs/{orgId}/events). 

 

The API documentation does mention these parameters and I would like to use them to filter events. (https://developer.atlassian.com/cloud/admin/organization/rest/api-group-orgs/#api-orgs-orgid-events-get)

 

I am using `curl` to query the results. The query calls for me looks as shown below.  The date and time are provided in the Unix timestamp format.

 

curl --request GET --url 'https://api.atlassian.com/admin/v1/orgs/{orgId}/events?from=1634642484&to=1634828884' --header 'Authorization: Bearer <API-Key>'

There are events generated in this time interval but the API call shows no results. Could you look into it and let me know if I am doing something wrong? 

 

This is what I see as output. It does not show any error. I am using an account with the trial plan for testing. 

{"data":[],"links":{},"meta":{"attributes":null,"next":null,"prev":null,"page_size":30,"start_index":null,"end_index":null,"total":0}}

 

1 answer

0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 29, 2019

Hi Małgorzata,

Welcome to Atlassian Community!

In order to delete your account, it’s necessary that this is not associated with any Atlassian products, so the option to add another email is a workaround because you can create any email that you will not use anymore and add as a primary billing and technical in order to remove your email, then, you will be able to delete your Atlassian account.

If you don’t want to add another email and don’t want to use Atlassian products anymore, you can go to my.atlassian.com and cancel your subscription or you can contact our Customers advocates through support.atlassian.com asking for them to destroy the sites where you are the main billing and technical.

If you have any other question, please let us know.

Regards,
Angélica

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events