Skip to content

Segment Groups Audit Log

Request

Get a list of changes to this segment group. History is returned newest first by default. Use sort_by= to sort by timestamp/created_on, user_name, action or field_name (prefix with - for descending order). Use q= to filter by the entry-level fields action, user_id, user_name, tool_name and timestamp/created_on, and by the field-level fields field_name, old_value and new_value. Use * as a wildcard with =: for substring matching. Multiple conditions are joined with &, URL-encoded as %26. Example: q=field_name==name%26new_value=:*summer* returns only the name changes whose new value contains "summer". When field-level filters are used, an entry is returned if at least one of its field changes matches all of the field-level filters, and only the matching field changes are returned for that entry; create and delete entries have no field changes and are excluded. meta.total_count and pagination reflect the filtered results. When sorting by field_name, entries are ordered by their first field name in ascending order and by their last field name in descending order.

Security
Auth0(Required scopes: offline_accessmanage:services)
Path
segment_group_idintegerrequired

Numeric ID of the segment group

Query
page_limitinteger, [ 1 .. 1000 ]

Number of elements in the collection to retrieve

Example:page_limit=100
page_offsetinteger, [ 0 .. 1000 ]

Index of the first element in the collection to retrieve

Example:page_offset=0
sort_bystring

The field to sort by. You can use any field name in ascending or descending order. For ascending order, use the field name directly, e.g., id. For descending order, prefix the field name with a hyphen (-), e.g., -id.

Example:sort_by=id, -id, name, -name
qstring

Query search for filtering. This parameter can be used to filter results based on various fields. Supported operators:

  • == - numeric equality or case-sensitive string identity,
  • ==(1,2,3) - IN query (only works for integers),
  • != - numeric inequality or case-sensitive string non-identity,
  • =: - case-insensitive match, allows substring using * wildcards,
  • !: - case-insensitive non-match ("does not contain"), allows substring using * wildcards; rows where the field is NULL are excluded,
  • < - less than,
  • <= - less than or equal to,
  • > - greater than,
  • >= - greater than or equal to. Examples:
  • q=name=:{search}* to find all results with names starting with {search}.
  • Numeric q=id=:*123* searches are treated as exact primary-key matches, equivalent to q=id==123; likewise q=id!:*123* is equivalent to q=id!=123.
  • q=name!:*promo* to exclude all results whose name contains "promo".
  • q=status==true to find all active entities.
  • q=id>=1000 to find all entities with id greater than or equal to 1000.
  • q=id==(1,2,3) to find specific entities by ID.
  • q=created_on>1999-02-02 or q=created_on>1999-02-02T00:00:00Z to find entities created later than date.
  • q=id>5&status==true to find all active entities with id greater than 5.
curl -i -X GET \
  'https://api.mediamath.com/api/v3.0/segment_groups/{segment_group_id}/history?page_limit=100&page_offset=0&sort_by=id%2C%20-id%2C%20name%2C%20-name&q=string' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Audit log response

Bodyapplication/json
dataArray of objects or null
metaobject(pagination metadata)
Response
{ "data": [ { … } ], "meta": { "status": "success", "count": 10, "total_count": 100, "offset": 0, "next_page": "string", "prev_page": "string" } }