Update an event registrant
put
/api/rest/2.0/data/eventRegistration/{parentId}/instance/{id}
Updates an event registrant that matches the criteria specified by the request body for the event specified by the
parentId parameter. The response will only include field values that have been updated in the request. The response will also only include contactId if it has been updated in the request.Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
Id of the event registrant.
-
parentId(required): integer
Id of the parent event.
The request body defines the details of the event registrant to be updated. Note: Only
fieldValues and contactId can be updated. fieldValues is required, even if not updating any fields. To update contactId, include fieldValues with an empty array.Root Schema : EventRegistrationData
Type:
objectTitle:
Show Source
EventRegistrationData-
accountId:
string
The account record Id associated to this event registrant. This is a read-only property.
-
contactId:
string
The contact record Id associated to this event registrant. Use the desired contact's id as the value for this parameter.
-
createdAt:
string
Read Only:
trueThe date and time the event registrant was created, expressed in Unix time. This is a read-only property. -
createdBy:
string
Read Only:
trueThis property is not used for event registrants. -
createdByName:
string
This property is not used for event registrants.
-
currentStatus:
string
This property is not used for event registrants.
-
customObjectRecordStatus:
string
The status of the event registrant. Only returned when creating or updating an event registrant. This is a read-only property.
-
depth:
string
Read Only:
trueThis property is not used for event registrants. -
description:
string
This property is not used for event registrants.
-
fieldValues:
array fieldValues
Array containing
type,id, andvaluefor all of the fields associated with a given event registrant. -
folderId:
string
Read Only:
trueThis property is not used for event registrants. -
id:
string
Read Only:
trueId of the event registrant. This is a read-only property. -
isMapped:
string
Whether or not the event registrant is mapped to a contact or account. This is a read-only property.
-
name:
string
The name of the event registrant. This is a read-only property.
-
permissions:
array permissions
This property is not used for event registrants.
-
scheduledFor:
string
Read Only:
trueThis property is not used for event registrants. -
sourceTemplateId:
string
This property is not used for event registrants.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
uniqueCode:
string
The unique value associated to the event registrant. This is a read-only property.
-
updatedAt:
string
Read Only:
trueUnix timestamp for the date and time the event registrant was last updated. This is a read-only property. -
updatedBy:
string
Read Only:
trueThis property is not used for event registrants. -
updatedByName:
string
This property is not used for event registrants.
Nested Schema : fieldValues
Type:
arrayArray containing
Show Source
type, id, and value for all of the fields associated with a given event registrant.-
Array of:
object FieldValue
Title:
FieldValue
Nested Schema : permissions
Type:
arrayThis property is not used for event registrants.
Show Source
Nested Schema : FieldValue
Type:
objectTitle:
Show Source
FieldValue-
id:
string
Read Only:
trueThe id of the field to be set to the corresponding value. -
name:
string
Name of the field value.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
value:
string
The value to set the corresponding field id to. Date values must be submitted as a unix timestamp.
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : EventRegistrationData
Type:
objectTitle:
Show Source
EventRegistrationData-
accountId:
string
The account record Id associated to this event registrant. This is a read-only property.
-
contactId:
string
The contact record Id associated to this event registrant. Use the desired contact's id as the value for this parameter.
-
createdAt:
string
Read Only:
trueThe date and time the event registrant was created, expressed in Unix time. This is a read-only property. -
createdBy:
string
Read Only:
trueThis property is not used for event registrants. -
createdByName:
string
This property is not used for event registrants.
-
currentStatus:
string
This property is not used for event registrants.
-
customObjectRecordStatus:
string
The status of the event registrant. Only returned when creating or updating an event registrant. This is a read-only property.
-
depth:
string
Read Only:
trueThis property is not used for event registrants. -
description:
string
This property is not used for event registrants.
-
fieldValues:
array fieldValues
Array containing
type,id, andvaluefor all of the fields associated with a given event registrant. -
folderId:
string
Read Only:
trueThis property is not used for event registrants. -
id:
string
Read Only:
trueId of the event registrant. This is a read-only property. -
isMapped:
string
Whether or not the event registrant is mapped to a contact or account. This is a read-only property.
-
name:
string
The name of the event registrant. This is a read-only property.
-
permissions:
array permissions
This property is not used for event registrants.
-
scheduledFor:
string
Read Only:
trueThis property is not used for event registrants. -
sourceTemplateId:
string
This property is not used for event registrants.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
uniqueCode:
string
The unique value associated to the event registrant. This is a read-only property.
-
updatedAt:
string
Read Only:
trueUnix timestamp for the date and time the event registrant was last updated. This is a read-only property. -
updatedBy:
string
Read Only:
trueThis property is not used for event registrants. -
updatedByName:
string
This property is not used for event registrants.
Nested Schema : fieldValues
Type:
arrayArray containing
Show Source
type, id, and value for all of the fields associated with a given event registrant.-
Array of:
object FieldValue
Title:
FieldValue
Nested Schema : permissions
Type:
arrayThis property is not used for event registrants.
Show Source
Nested Schema : FieldValue
Type:
objectTitle:
Show Source
FieldValue-
id:
string
Read Only:
trueThe id of the field to be set to the corresponding value. -
name:
string
Name of the field value.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
value:
string
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.
Examples
Update an event registrant whose Id = 332383 for the event with Id #1260:
PUT /api/REST/2.0/data/eventRegistration/1260/instance/332383
Content-Type: application/json
Request body:
{
"fieldValues": [
{
"id": "3964",
"value": "Europe"
}
]
}
Response:
{
"type": "EventRegistrationData",
"id": "332375",
"createdAt": "1493161593",
"name": "john.doe@oracle.com",
"updatedAt": "1493245509",
"customObjectRecordStatus": "OnHold",
"fieldValues": [
{
"type": "FieldValue",
"id": "3964",
"value": "Europe"
}
],
"isMapped": "Yes",
"uniqueCode": "john.doe@oracle.com"
}
Update the mapped contact for an event registrant whose Id = 332383 for the event with Id #1260:
PUT /data/eventRegistration/1260/instance/332383
Content-Type: application/json
Request body:
{
"contactId": "3",
"fieldValues": []
}
Response:
{
"type": "EventRegistrationData",
"id": "332375",
"createdAt": "1493161593",
"name": "john.doe@oracle.com",
"updatedAt": "1493246010",
"contactId": "3",
"customObjectRecordStatus": "OnHold",
"fieldValues": [],
"isMapped": "Yes",
"uniqueCode": "john.doe@oracle.com"
}