GET /audit-logs/common-resources

GET /audit-logs/common-resources

Retrieve Common Resource and transformations API request logs that identify the request, the user who made the request, the time that they made the request, and more. 

Query Parameters

fromThe start date for your search formatted as yyyy-MM-dd, for example 2018-01-24. You can also specify a start time by formatting your search like yyyy-MM-dd_THH:mm:ss.SSSZ, for example 2018-01-24T15:56:44.000Z.
toThe end date for your search formatted as yyyy-MM-dd, for example 2018-01-31. You can also specify an end time by formatting your search like yyyy-MM-dd_THH:mm:ss.SSSZ, for example 2018-01-31T15:56:44.000Z.
userIdThe unique id of the user that you want to filter. Use GET /users to find user ids.
accountIdThe unique id of the account that you want to filter. Use GET /accounts to find account ids.
nextPageThe next page token. Found in the header of the previous search.
pageSizeThe page size for the paginated results, defaults to 200

Response Fields

account_idThe unique account id associated with the user that made the request.
methodThe API method, or verb, used to make the request.
user_idThe unique user id of the user that made the request.
org_idThe unique organization id associated with the user that made the request.
resource_uriThe endpoint of the request.
idA unique id assigned to the request.
ip_addressThe IP address where the request originated.
entity_idThe id of the object acted upon in the request.
timestampThe date and time of the request.
statusThe HTTP status code of the response to the request.

Example Request


curl -X GET \
  'https://api-us.integrate.sugarapps.com/elements/api-v2/audit-logs/common-resources?from=2018-01-01&to=2018-04-11&userId=160255&accountId=156162&pageSize=200' \
-H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
  -H 'accept: application/json'

Example Response


[
    {
        "account_id": "156162",
        "method": "PUT",
        "user_id": "160255",
        "org_id": "97555",
        "resource_uri": "/elements/api-v2/common-resources",
        "id": "AWKwE0lDoDoSIdL8tr87",
        "ip_address": "52.42.133.33",
        "entity_id": "myContacts"
        "timestamp": "2018-04-10T15:41:57.000Z",
        "status": 200
    },
[