Update a contact segment
put
/api/REST/1.0/assets/contact/segment/{id}
Updates the contact segment 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(required): integer
Id of the contact segment.
The request body defines the details of the contact segment to be update.
Root Schema : ContactSegment
Type:
object
Title:
Show Source
ContactSegment
-
count:
string
The number of contacts in the contact segment. This is a read-only property.
-
createdAt:
string
Read Only:
true
The date and time the contact segment was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the contact segment. -
currentStatus:
string
The contact segment's current status. This is a read-only property.
-
depth:
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:
string
The description of the contact segment.
-
elements:
array elements
Array of contact segment elements.
-
id:
string
Read Only:
true
Id of the contact segment. This is a read-only property. -
lastCalculatedAt:
string
The date and time of the most recent calculation. This is a read-only property.
-
name:
string
The contact segment's name.
-
permissions:
string
The permissions for the contact segment granted to your current instance. This is a read-only property.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the contact segment was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the contact segment.
Nested Schema : elements
Type:
array
Array of contact segment elements.
Show Source
-
Array of:
object SegmentElement
Title:
SegmentElement
Nested Schema : SegmentElement
Type:
object
Title:
Show Source
SegmentElement
-
count:
string
The number of contacts in the contact segment element. This is a read-only property.
-
createdAt:
string
Read Only:
true
The date and time the contact segment element was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the contact segment element. -
currentStatus:
string
The contact segment element's current status. This is a read-only property.
-
depth:
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:
string
The description of the contact segment element.
-
id:
string
Read Only:
true
Id of the contact segment element. This is a read-only property. -
isIncluded:
string
The total amount of contacts within the segment element.
-
lastCalculatedAt:
string
The date and time the contact segment element was last calculated. This is a read-only property.
-
name:
string
The name of the contact segment element. This is a read-only property.
-
permissions:
string
The permissions for the contact segment element granted to your current instance. This is a read-only property.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the contact segment element was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the contact segment element.
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : ContactSegment
Type:
object
Title:
Show Source
ContactSegment
-
count:
string
The number of contacts in the contact segment. This is a read-only property.
-
createdAt:
string
Read Only:
true
The date and time the contact segment was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the contact segment. -
currentStatus:
string
The contact segment's current status. This is a read-only property.
-
depth:
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:
string
The description of the contact segment.
-
elements:
array elements
Array of contact segment elements.
-
id:
string
Read Only:
true
Id of the contact segment. This is a read-only property. -
lastCalculatedAt:
string
The date and time of the most recent calculation. This is a read-only property.
-
name:
string
The contact segment's name.
-
permissions:
string
The permissions for the contact segment granted to your current instance. This is a read-only property.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the contact segment was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the contact segment.
Nested Schema : elements
Type:
array
Array of contact segment elements.
Show Source
-
Array of:
object SegmentElement
Title:
SegmentElement
Nested Schema : SegmentElement
Type:
object
Title:
Show Source
SegmentElement
-
count:
string
The number of contacts in the contact segment element. This is a read-only property.
-
createdAt:
string
Read Only:
true
The date and time the contact segment element was created, expressed in Unix time. -
createdBy:
string
Read Only:
true
The login id of the user who created the contact segment element. -
currentStatus:
string
The contact segment element's current status. This is a read-only property.
-
depth:
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:
string
The description of the contact segment element.
-
id:
string
Read Only:
true
Id of the contact segment element. This is a read-only property. -
isIncluded:
string
The total amount of contacts within the segment element.
-
lastCalculatedAt:
string
The date and time the contact segment element was last calculated. This is a read-only property.
-
name:
string
The name of the contact segment element. This is a read-only property.
-
permissions:
string
The permissions for the contact segment element granted to your current instance. This is a read-only property.
-
type:
string
The asset's type in Eloqua. This is a read-only property.
-
updatedAt:
string
Read Only:
true
Unix timestamp for the date and time the contact segment element was last updated. -
updatedBy:
string
Read Only:
true
The login id of the user that last updated the contact segment element.
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
Add an existing shared list with an id
of 69 to an existing segment with an id
of 7:
PUT /api/REST/1.0/assets/contact/segment/7
Content-Type: application/json
Request body:
{
"id": "7",
"name": "Segment_Add_Shared_List_Test",
"elements": [
{
"type": "ContactListSegmentElement",
"list": {
"type": "ContactList",
"id": "69",
"name": "Segment_Shared_List_Test",
"scope": "global"
}
}
]
}
Response:
{
"type": "ContactSegment",
"currentStatus": "Draft",
"id": "7",
"initialId": "7",
"createdAt": "1473654217",
"createdBy": "11",
"depth": "complete",
"folderId": "312",
"name": "Segment_Add_Shared_List_Test",
"permissions": "fullControl",
"updatedAt": "1473654810",
"updatedBy": "11",
"count": "0",
"elements": [
{
"type": "ContactListSegmentElement",
"id": "8",
"depth": "complete",
"count": "0",
"isIncluded": "false",
"lastCalculatedAt": "1473654810",
"list": {
"type": "ContactList",
"id": "69",
"initialId": "69",
"createdAt": "1473654190",
"createdBy": "11",
"depth": "complete",
"folderId": "48",
"name": "Segment_Shared_List_Test",
"permissions": "fullControl",
"updatedAt": "1473654810",
"updatedBy": "11",
"count": "0",
"dataLookupId": "eae3aa27-a66a-47c9-bf06-7293ba9f884a",
"scope": "global"
}
}
],
"lastCalculatedAt": "1473654220"
}