I am trying to obtain audit log from sharepoint online using Office management api.

When I use https://manage.office.com/api/v1.0/tenant-id/activity/feed/subscriptions/content?contentType=Audit.SharePoint as a Api url I am getting data of previous 24 hours but what I wanted data according to input date.

So I tried this url: https://manage.office.com/api/v1.0/tenant-id/activity/feed/subscriptions/content?contentType=Audit.SharePoint&startTime=2019-02-26&endTime=2019-03-03. I am getting

400 Bad Request" Error

What should be Request Url in that case?


You have the wrong date format. It should be in this format which is more url friendly.


  • Tried this, not working still same Error Mar 12 '19 at 4:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.