Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello, when issuing example query to Activity Events API i'm getting the following response:
"json": {
"error": {
"code": "BadRequest",
"details": [
{
"message": "Object must implement IConvertible.",
"target": "startDateTime"
},
{
"message": "Object must implement IConvertible.",
"target": "endDateTime"
}
],
"message": "Bad Request"
}
},This is the output from Ansible, but i'm getting the same response through the Try It at https://docs.microsoft.com/en-us/rest/api/power-bi/admin/getactivityevents
This is my ansible resource config:
- name: Retrieve PowerBI Activity Events
uri:
url: "https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime={{ '2020-09-01T00:00:00.000Z' | urlencode }}&endDateTime={{ '2020-09-18T00:00:00Z' | urlencode }}"
method: GET
headers:
Authorization: "Bearer {{ powerbi_access_token }}"
status_code: 200
return_content: yes
validate_certs: no
register: activity_response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.