Update a contact segment
put
/api/rest/2.0/assets/contact/segment/{id}
Updates the contact segment specified by the
id
parameter.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. -
createdByName:
string
The name of the user who created the contact segment.
-
currentStatus:
string
This property is not used for contact segments.
-
dependencyName:
string
Segment_Field_DependencyName_Description
-
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
This property is not used for contact segments.
-
elements:
array elements
Array of contact segment elements.
-
folderId:
string
Read Only:
true
The folder id of the folder which contains the contact segment. -
id:
string
Read Only:
true
Id of the contact segment. This is a read-only property. -
isStale:
string
Whether or not the contact segment has been refreshed in the last 24 hours by the user performing the request.
-
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:
array permissions
The permissions for the contact segment granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
This property is not used for contact segments. -
sourceTemplateId:
string
This property is not used for contact segments.
-
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. -
updatedByName:
string
The name of the user who 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 : permissions
Type:
array
The permissions for the contact segment granted to your current instance. This is a read-only property.
Show Source
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. -
createdByName:
string
The name 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
This property is not used for contact segment elements.
-
folderId:
string
Read Only:
true
The folder id of the folder which contains 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
This property is not used for contact segment elements.
-
permissions:
array permissions
The permissions for the contact segment element granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
This property is not used for contact segment elements. -
sourceTemplateId:
string
This property is not used for contact segment elements.
-
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. -
updatedByName:
string
The name of the user who last updated the contact segment element.
Nested Schema : permissions
Type:
array
The permissions for the contact segment element granted to your current instance. This is a read-only property.
Show Source
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. -
createdByName:
string
The name of the user who created the contact segment.
-
currentStatus:
string
This property is not used for contact segments.
-
dependencyName:
string
Segment_Field_DependencyName_Description
-
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
This property is not used for contact segments.
-
elements:
array elements
Array of contact segment elements.
-
folderId:
string
Read Only:
true
The folder id of the folder which contains the contact segment. -
id:
string
Read Only:
true
Id of the contact segment. This is a read-only property. -
isStale:
string
Whether or not the contact segment has been refreshed in the last 24 hours by the user performing the request.
-
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:
array permissions
The permissions for the contact segment granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
This property is not used for contact segments. -
sourceTemplateId:
string
This property is not used for contact segments.
-
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. -
updatedByName:
string
The name of the user who 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 : permissions
Type:
array
The permissions for the contact segment granted to your current instance. This is a read-only property.
Show Source
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. -
createdByName:
string
The name 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
This property is not used for contact segment elements.
-
folderId:
string
Read Only:
true
The folder id of the folder which contains 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
This property is not used for contact segment elements.
-
permissions:
array permissions
The permissions for the contact segment element granted to your current instance. This is a read-only property.
-
scheduledFor:
string
Read Only:
true
This property is not used for contact segment elements. -
sourceTemplateId:
string
This property is not used for contact segment elements.
-
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. -
updatedByName:
string
The name of the user who last updated the contact segment element.
Nested Schema : permissions
Type:
array
The permissions for the contact segment element granted to your current instance. This is a read-only property.
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 a contact segment with the Id #70:
PUT /api/REST/2.0/assets/contact/segment/70
Content-Type: application/json
Request body:
{
"name": "My new segment name",
"id": "70"
}
Response:
{
"type": "ContactSegment",
"currentStatus": "Draft",
"id": "70",
"initialId": "70",
"createdAt": "1501002060",
"createdBy": "9",
"depth": "complete",
"folderId": "1267",
"name": "My new segment name",
"permissions": [
"Retrieve",
"SetSecurity",
"Delete",
"Update"
],
"updatedAt": "1501002674",
"updatedBy": "9",
"elements": [],
"isStale": "True"
}