Retrieve an external activity

get

/api/REST/2.0/data/activity/{id}

Retrieves the external activity data specified by the id parameter.

Request

Supported Media Types
Path Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : ExternalActivities
Type: object
Title: ExternalActivities
Show Source
Nested Schema : fieldValues
Type: array
Array containing type and id values for all of the activity fields associated with a given external activity
Show Source
Nested Schema : permissions
Type: array
The permissions for the external activity granted to your current instance. This is a read-only property.
Show Source
Nested Schema : items
Type: object
Additional Properties Allowed
Show Source

400 Response

Bad request. See Status Codes for information about other possible HTTP status codes.

401 Response

Unauthorized. See Status Codes for information about other possible HTTP status codes.

403 Response

Forbidden. See Status Codes for information about other possible HTTP status codes.

404 Response

The requested resource was not found. See Status Codes for information about other possible HTTP status codes.

500 Response

The service has encountered an error. See Status Codes for information about other possible HTTP status codes.
Back to Top

Examples

The following examples demonstrate how to retrieve an external activity using an HTTP request and cURL. For more information on requests, see API requests.

HTTP Request Example

Retrieve the external activity data with Id #34:


GET /api/REST/2.0/data/activity/34
			

Response:


{
  "type": "ExternalActivities",
  "id": "34",
  "depth": "complete",
  "name": "Tradeshow 2016",
  "activityDate": "0",
  "activityType": "Viewed a Demo",
  "assetName": "Tradeshow 2016",
  "assetType": "Tradeshow",
  "contactId": 6
}
			

cURL Example

Here is the same example in cURL given an instance with the name APITest, username API.User, and POD of 3.


curl --user "APITest\API.User" --request GET https://secure.p03.eloqua.com/api/REST/2.0/data/activity/34?depth=complete
			
Back to Top