Update a contact field
put
/api/REST/1.0/assets/contact/field/{id}
Updates the contact field 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
- application/json
Path Parameters
-
id: integer
Id of the contact field to be updated.
List of contact fields.
Root Schema : ContactField
Type:
object
Title:
Show Source
ContactField
-
accessedAt(optional):
string
Read Only:
true
The date and time the contact field was last accessed, expressed in Unix time. -
checkedValue(optional):
string
The checked value.
-
createdAt(optional):
string
Read Only:
true
The date and time the contact field was created, expressed in Unix time. This is a read-only property. -
createdBy(optional):
string
Read Only:
true
The login id of the user who created the contact field. This is a read-only property. -
currentStatus(optional):
string
The email footer's current status.
-
dataType(optional):
string
The contact field's data type. This is a read-only property.
-
defaultValue(optional):
string
The contact field's default value.
-
depth(optional):
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description(optional):
string
The description of the contact field.
-
displayType(optional):
string
The contact field's display type.
-
id(optional):
string
Read Only:
true
Id of the contact field. This is a read-only property. -
internalName(optional):
string
The contact field's internal name.
-
isPhoneValidationRequired(optional):
string
ContactField_Field_IsPhoneValidationRequired_Description
-
isReadOnly(optional):
string
Whether or not the contact field is read only.
-
isRequired(optional):
string
Whether or not the contact field is required.
-
isStandard(optional):
string
Whether or not the contact field is standard.
-
name(optional):
string
The name of the contact field.
-
optionListId(optional):
string
The id of the associated option list.
-
outputFormatId(optional):
string
The id of the output format.
-
permissions(optional):
string
The permissions for the contact field granted to your current instance. This is a read-only property.
-
showTrustedVisitorsOnly(optional):
string
Whether or not a contact field is displayed only to trusted visitors.
-
type(optional):
string
The asset's type in Eloqua. This is a read-only property.
-
uncheckedValue(optional):
string
The unchecked value of a checkbox custom object field.
-
updatedAt(optional):
string
Read Only:
true
Unix timestamp for the date and time the contact field was last updated. -
updatedBy(optional):
string
Read Only:
true
The login id of the user that last updated the contact field. -
updateType(optional):
string
Denotes under what circumstances the contact field is updated.
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : ContactField
Type:
object
Title:
Show Source
ContactField
-
accessedAt(optional):
string
Read Only:
true
The date and time the contact field was last accessed, expressed in Unix time. -
checkedValue(optional):
string
The checked value.
-
createdAt(optional):
string
Read Only:
true
The date and time the contact field was created, expressed in Unix time. This is a read-only property. -
createdBy(optional):
string
Read Only:
true
The login id of the user who created the contact field. This is a read-only property. -
currentStatus(optional):
string
The email footer's current status.
-
dataType(optional):
string
The contact field's data type. This is a read-only property.
-
defaultValue(optional):
string
The contact field's default value.
-
depth(optional):
string
Read Only:
true
Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth:minimal
,partial
, andcomplete
. Any other values passed are reset tocomplete
by default. For more information, see Request depth. -
description(optional):
string
The description of the contact field.
-
displayType(optional):
string
The contact field's display type.
-
id(optional):
string
Read Only:
true
Id of the contact field. This is a read-only property. -
internalName(optional):
string
The contact field's internal name.
-
isPhoneValidationRequired(optional):
string
ContactField_Field_IsPhoneValidationRequired_Description
-
isReadOnly(optional):
string
Whether or not the contact field is read only.
-
isRequired(optional):
string
Whether or not the contact field is required.
-
isStandard(optional):
string
Whether or not the contact field is standard.
-
name(optional):
string
The name of the contact field.
-
optionListId(optional):
string
The id of the associated option list.
-
outputFormatId(optional):
string
The id of the output format.
-
permissions(optional):
string
The permissions for the contact field granted to your current instance. This is a read-only property.
-
showTrustedVisitorsOnly(optional):
string
Whether or not a contact field is displayed only to trusted visitors.
-
type(optional):
string
The asset's type in Eloqua. This is a read-only property.
-
uncheckedValue(optional):
string
The unchecked value of a checkbox custom object field.
-
updatedAt(optional):
string
Read Only:
true
Unix timestamp for the date and time the contact field was last updated. -
updatedBy(optional):
string
Read Only:
true
The login id of the user that last updated the contact field. -
updateType(optional):
string
Denotes under what circumstances the contact field is updated.
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 the name and isReadOnly value of the contact field with Id #100196:
PUT /api/REST/1.0/assets/contact/field/100196
Content-Type: application/json
Request body:
{
"id":"100196",
"name":"Erudition",
"dataType":"text",
"displayType":"text",
"updateType":"newNotBlank"
"isReadOnly":"true",
}
Response:
{
"type": "ContactField",
"id": "100196",
"initialId": "100196",
"createdAt": "1434032400",
"createdBy": "19",
"depth": "complete",
"name": "Erudition",
"updatedAt": "1434033658",
"updatedBy": "19",
"dataType": "text",
"displayType": "text",
"internalName": "C_Intelligence_Quotient1",
"isReadOnly": "true",
"isRequired": "false",
"isStandard": "false",
"isPopulatedInOutlookPlugin": "true",
"showTrustedVisitorsOnly": "true",
"updateType": "newNotBlank"
}