Update an event

put

/api/REST/2.0/assets/eventRegistration/{id}

Updates the event specified by the id parameter. All properties should be included in PUT requests, as some properties will be considered blank if not included.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the details of the event to be updated.
Root Schema : EventRegistration
Type: object
Title: EventRegistration
Show Source
Nested Schema : fields
Type: array
Array consisting of event field properties.
Show Source
Nested Schema : permissions
Type: array
This property is not used for events.
Show Source
Nested Schema : sessionFields
Type: array
Array consisting of session fields within a session.
Show Source
Nested Schema : sessionFieldValues
Type: array
Array consisting of session fields values for a session. You must create session fields and session before creating the session field values.
Show Source
Nested Schema : sessions
Type: array
Array consisting of event sessions.
Show Source
Nested Schema : CustomObjectField
Type: object
Title: CustomObjectField
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Nested Schema : EventSessionField
Type: object
Title: EventSessionField
Show Source
Nested Schema : FieldOutputFormat
Type: object
Title: FieldOutputFormat
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Nested Schema : EventSessionFieldValue
Type: object
Title: EventSessionFieldValue
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Nested Schema : EventSession
Type: object
Title: EventSession
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : EventRegistration
Type: object
Title: EventRegistration
Show Source
Nested Schema : fields
Type: array
Array consisting of event field properties.
Show Source
Nested Schema : permissions
Type: array
This property is not used for events.
Show Source
Nested Schema : sessionFields
Type: array
Array consisting of session fields within a session.
Show Source
Nested Schema : sessionFieldValues
Type: array
Array consisting of session fields values for a session. You must create session fields and session before creating the session field values.
Show Source
Nested Schema : sessions
Type: array
Array consisting of event sessions.
Show Source
Nested Schema : CustomObjectField
Type: object
Title: CustomObjectField
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Nested Schema : EventSessionField
Type: object
Title: EventSessionField
Show Source
Nested Schema : FieldOutputFormat
Type: object
Title: FieldOutputFormat
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Nested Schema : EventSessionFieldValue
Type: object
Title: EventSessionFieldValue
Show Source
Nested Schema : permissions
Type: array
This property is not used.
Show Source
Nested Schema : EventSession
Type: object
Title: EventSession
Show Source
Nested Schema : permissions
Type: array
This property is not used.
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

Update the name of the event with Id #1260:


PUT /api/REST/2.0/assets/eventRegistration/1260
Content-Type: application/json
			

Request body:


{
  "id": "1260",
  "name": "Modern Marketing Experience",
  "eventGroupByFieldId": "3964",
  "sessionFieldValues": [
    {
      "type": "EventSessionFieldValue",
      "id": "-1",
      "sessionFieldId": "535",
      "sessionId": "51",
      "value": "1493006400"
    },
    {
      "type": "EventSessionFieldValue",
      "id": "-2",
      "sessionFieldId": "536",
      "sessionId": "51",
      "value": "Las Vegas"
    },
    {
      "type": "EventSessionFieldValue",
      "id": "-3",
      "sessionFieldId": "535",
      "sessionId": "52",
      "value": "1447736400"
    },
    {
      "type": "EventSessionFieldValue",
      "id": "-4",
      "sessionFieldId": "536",
      "sessionId": "52",
      "value": "London"
    }
  ]
}
			

Response:


{
  "type": "EventRegistration",
  "id": "1260",
  "initialId": "1260",
  "createdAt": "1493156689",
  "createdBy": "71",
  "depth": "complete",
  "folderId": "81",
  "name": "Modern Marketing Experience",
  "updatedAt": "1493157538",
  "updatedBy": "71",
  "emailAddressFieldId": "3958",
  "eventGroupByFieldId": "3964",
  "fields": [
    {
      "type": "CustomObjectField",
      "id": "3958",
      "depth": "complete",
      "name": "Email",
      "dataType": "text",
      "displayType": "text",
      "internalName": "Email1"
    },
    {
      "type": "CustomObjectField",
      "id": "3959",
      "depth": "complete",
      "name": "First Name",
      "dataType": "text",
      "displayType": "text",
      "internalName": "First_Name1"
    },
    {
      "type": "CustomObjectField",
      "id": "3960",
      "depth": "complete",
      "name": "Industry",
      "dataType": "text",
      "displayType": "singleSelect",
      "internalName": "Industry1",
      "optionListId": "9"
    },
    {
      "type": "CustomObjectField",
      "id": "3961",
      "depth": "complete",
      "name": "Markie Submitted",
      "checkedValue": "Yes",
      "dataType": "text",
      "defaultValue": "No",
      "displayType": "checkbox",
      "internalName": "Markie_Submitted1",
      "uncheckedValue": "No"
    },
    {
      "type": "CustomObjectField",
      "id": "3962",
      "depth": "complete",
      "name": "Birthday",
      "dataType": "date",
      "displayType": "text",
      "internalName": "Birthday1"
    },
    {
      "type": "CustomObjectField",
      "id": "3963",
      "depth": "complete",
      "name": "Years Using Eloqua",
      "dataType": "number",
      "displayType": "text",
      "internalName": "Years_Using_Eloqua1"
    },
    {
      "type": "CustomObjectField",
      "id": "3964",
      "depth": "complete",
      "name": "MME Location",
      "dataType": "text",
      "defaultValue": "North America",
      "displayType": "singleSelect",
      "internalName": "MME_Location1",
      "optionListId": "108"
    }
  ],
  "sessionFieldValues": [
    {
      "type": "EventSessionFieldValue",
      "id": "608",
      "initialId": "-1",
      "sessionFieldId": "535",
      "sessionId": "51",
      "value": "1493006400"
    },
    {
      "type": "EventSessionFieldValue",
      "id": "609",
      "initialId": "-2",
      "sessionFieldId": "536",
      "sessionId": "51",
      "value": "Las Vegas"
    },
    {
      "type": "EventSessionFieldValue",
      "id": "610",
      "initialId": "-3",
      "sessionFieldId": "535",
      "sessionId": "52",
      "value": "1447736400"
    },
    {
      "type": "EventSessionFieldValue",
      "id": "611",
      "initialId": "-4",
      "sessionFieldId": "536",
      "sessionId": "52",
      "value": "London"
    }
  ],
  "sessionFields": [
    {
      "type": "EventSessionField",
      "id": "535",
      "name": "Date",
      "dataType": "date",
      "outputFormat": {
        "type": "FieldOutputFormat",
        "id": "19",
        "dataType": "date",
        "format": "dddd MMMM d, yyyy"
      }
    },
    {
      "type": "EventSessionField",
      "id": "536",
      "name": "Location",
      "dataType": "text"
    }
  ],
  "sessions": [
    {
      "type": "EventSession",
      "id": "51",
      "name": "North America"
    },
    {
      "type": "EventSession",
      "id": "52",
      "name": "Europe"
    }
  ],
  "uniqueCodeFieldId": "3958"
}
			
Back to Top