Update a contact list
put
/api/REST/1.0/assets/contact/list/{id}
Updates the contact list 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 list.
The request body defines the details of the contact list to be updated.
Root Schema : ContactList
Type:
object
Title:
Show Source
ContactList
-
count(optional):
string
Read Only:
true
The number of contacts in the contact list. This is a read-only property. -
createdAt(optional):
string
Read Only:
true
The date and time the contact segment was created, expressed in Unix time. -
createdBy(optional):
string
Read Only:
true
The login id of the user who created the contact list. This is a read-only property. -
currentStatus(optional):
string
The contact list's current status. This is a read-only property.
-
dataLookupId(optional):
string
The contact list's data lookup Id. This is a read-only property.
-
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 list.
-
id(optional):
string
Read Only:
true
Id of the contact list. -
membershipAdditions(optional):
array membershipAdditions
The number of contact membership additions in the contact list.
-
membershipDeletions(optional):
array membershipDeletions
The number of contact membership deletions in the contact list.
-
name(optional):
string
The contact list's name.
-
permissions(optional):
string
The permissions for the contact list granted to your current instance. This is a read-only property.
-
scope(optional):
string
The contact list's scope: either
local
orglobal
. -
type(optional):
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt(optional):
string
Read Only:
true
Unix timestamp for the date and time the contact list was last updated. -
updatedBy(optional):
string
Read Only:
true
The login id of the user that last updated the contact list.
Nested Schema : membershipAdditions
Type:
array
The number of contact membership additions in the contact list.
Show Source
Nested Schema : membershipDeletions
Type:
array
The number of contact membership deletions in the contact list.
Show Source
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : ContactList
Type:
object
Title:
Show Source
ContactList
-
count(optional):
string
Read Only:
true
The number of contacts in the contact list. This is a read-only property. -
createdAt(optional):
string
Read Only:
true
The date and time the contact segment was created, expressed in Unix time. -
createdBy(optional):
string
Read Only:
true
The login id of the user who created the contact list. This is a read-only property. -
currentStatus(optional):
string
The contact list's current status. This is a read-only property.
-
dataLookupId(optional):
string
The contact list's data lookup Id. This is a read-only property.
-
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 list.
-
id(optional):
string
Read Only:
true
Id of the contact list. -
membershipAdditions(optional):
array membershipAdditions
The number of contact membership additions in the contact list.
-
membershipDeletions(optional):
array membershipDeletions
The number of contact membership deletions in the contact list.
-
name(optional):
string
The contact list's name.
-
permissions(optional):
string
The permissions for the contact list granted to your current instance. This is a read-only property.
-
scope(optional):
string
The contact list's scope: either
local
orglobal
. -
type(optional):
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt(optional):
string
Read Only:
true
Unix timestamp for the date and time the contact list was last updated. -
updatedBy(optional):
string
Read Only:
true
The login id of the user that last updated the contact list.
Nested Schema : membershipAdditions
Type:
array
The number of contact membership additions in the contact list.
Show Source
Nested Schema : membershipDeletions
Type:
array
The number of contact membership deletions in the contact list.
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.
Examples
Update the name and description value of the contact list with Id #86:
PUT /api/REST/1.0/assets/contact/list/86
Content-Type: application/json
Request body:
{
"name":"New Name",
"id":"86",
"description":"this is a new description for my contact list."
}
Response:
{
"type":"ContactList",
"id":"86",
"createdAt":"1434980628",
"createdBy":"19",
"depth":"complete",
"description":"this is a new description for my contact list.",
"folderId":"48",
"name":"New Name",
"permissions":"fullControl",
"updatedAt":"1434980974",
"updatedBy":"19",
"count":"0",
"dataLookupId":"4f27ab85-e90c-4217-a4e9-ca9deb607a47",
"scope":"global"
}