Create an event registrant

post

/api/rest/2.0/data/eventRegistration/{parentId}/instance

Creates an event registrant that matches the criteria specified by the request body for the event specified by the parentId parameter.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the event registrant to be created.
Root Schema : EventRegistrationData
Type: object
Title: EventRegistrationData
Show Source
Nested Schema : fieldValues
Type: array
Array containing type, id, and value for all of the fields associated with a given event registrant.
Show Source
Nested Schema : permissions
Type: array
This property is not used for event registrants.
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
  • Read Only: true
    The id of the field to be set to the corresponding value.
  • Name of the field value.
  • The asset's type in Eloqua. This is a read-only property.
  • The value to set the corresponding field id to. Date values must be submitted as a unix timestamp.
Back to Top

Response

Supported Media Types

201 Response

Success.
Body ()
Root Schema : EventRegistrationData
Type: object
Title: EventRegistrationData
Show Source
Nested Schema : fieldValues
Type: array
Array containing type, id, and value for all of the fields associated with a given event registrant.
Show Source
Nested Schema : permissions
Type: array
This property is not used for event registrants.
Show Source
Nested Schema : FieldValue
Type: object
Title: FieldValue
Show Source
  • Read Only: true
    The id of the field to be set to the corresponding value.
  • Name of the field value.
  • The asset's type in Eloqua. This is a read-only property.
  • The value to set the corresponding field id to. Date values must be submitted as a unix timestamp.

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

Create a new event registrant and map to contact for the event with Id #1260:


POST /api/REST/2.0/data/eventRegistration/1260/instance
Content-Type: application/json
			

Request body:


{
  "contactId": "1653175",
  "fieldValues": [
    {
      "id": "3958",
      "value": "sally@oracle.com"
    },
    {
      "id": "3959",
      "value": "Sally"
    },
    {
      "id": "3960",
      "value": "Technology"
    },
    {
      "id": "3962",
      "value": "41547123"
    },
    {
      "id": "3964",
      "value": "North America"
    },
    {
      "id": "3963",
      "value": "2"
    },
    {
      "id": "3961",
      "value": "Yes"
    }
  ]
}
			

Response:


{
  "type": "EventRegistrationData",
  "id": "332379",
  "createdAt": "1493240064",
  "name": "sally@oracle.com",
  "updatedAt": "1493240064",
  "contactId": "1653175",
  "customObjectRecordStatus": "Registered",
  "fieldValues": [
    {
      "type": "FieldValue",
      "id": "3958",
      "value": "sally@oracle.com"
    },
    {
      "type": "FieldValue",
      "id": "3959",
      "value": "Sally"
    },
    {
      "type": "FieldValue",
      "id": "3960",
      "value": "Technology"
    },
    {
      "type": "FieldValue",
      "id": "3962",
      "value": "41547123"
    },
    {
      "type": "FieldValue",
      "id": "3964",
      "value": "North America"
    },
    {
      "type": "FieldValue",
      "id": "3963",
      "value": "2"
    },
    {
      "type": "FieldValue",
      "id": "3961",
      "value": "Yes"
    }
  ],
  "isMapped": "Yes",
  "uniqueCode": "sally@oracle.com"
}
			
Back to Top