Documentation

Activity Stream List API Endpoint

Make a GET request to this resource to retrieve the list of activity streams.

GET /api/v2/activity_stream/
HTTP 402 PAYMENT REQUIRED
Content-Type: application/json
Vary: Accept
Allow: GET, HEAD, OPTIONS
X-API-Time: 0.044s

The resulting data structure contains:

{
    "count": 99,
    "next": null,
    "previous": null,
    "results": [
        ...
    ]
}

The count field indicates the total number of activity streams found for the given query. The next and previous fields provides links to additional results if there are more than will fit on a single page. The results list contains zero or more activity stream records.

Results

Each activity stream data structure includes the following fields:

  • id: Database ID for this activity stream. (integer)
  • type: Data type for this activity stream. (multiple choice)
    • activity_stream: Activity Stream
  • url: URL for this activity stream. (string)
  • related: Data structure with URLs of related resources. (object)
  • summary_fields: Data structure with name/description for related resources. (object)
  • timestamp: (datetime)
  • operation: The action taken with respect to the given object(s). (multiple choice)
    • create: Entity Created
    • update: Entity Updated
    • delete: Entity Deleted
    • associate: Entity Associated with another Entity
    • disassociate: Entity was Disassociated with another Entity
    • changes: A summary of the new and changed values when an object is created, updated, or deleted (field)
    • object1: For create, update, and delete events this is the object type that was affected. For associate and disassociate events this is the object type associated or disassociated with object2 (string)
    • object2: Unpopulated for create, update, and delete events. For associate and disassociate events this is the object type that object1 is being associated with (string)

Reviewing the Options Endpoint

The Options Endpoint table offers a view of the Options for this endpoint. When viewing the endpoint in the browsable API, clicking the “Options” button gives you the raw JSON for the following:

name Activity Stream List
description # List Activity Streams: Make a GET request to this resource to retrieve the list of activity streams.
renders
0 application/json
1 text/html
parses
0 application/json
added_in_version 1.4.5
types
0 activity_stream
actions
GET
id
type integer
label ID
help_text Database ID for this activity stream.
type
type multiple choice
help_text Data type for this activity stream.
choices
0
0 activity_stream
1 Activity Stream
url
type string
help_text URL for this activity stream.
related
type object
help_text Data structure with URLs of related resources.
summary_fields
type object
help_text Data structure with name/description for related resources.
timestamp
type datetime
label timestamp
operation
type multiple choice
label operation
help_text The action taken with respect to the given object(s).
choices
0
0 create
1 Entity Created
1
0 update
1 Entity Updated
2
0 delete
1 Entity Deleted
3
0 associate
1 Entity Associated with another Entity
4
0 disassociate
1 Entity was Disassociated with another Entity
changes
type field
help_text A summary of the new and changed values when an object is created, updated, or deleted
object1
type string
label object1
help_text For create, update, and delete events this is the object type that was affected. For associate and disassociate events this is the object type associated or disassociated with object2
object2
type string
label object2
help_text Unpopulated for create, update, and delete events. For associate and disassociate events this is the object type that object1 is being associated with