Newer Version Available
CdpSegment Class
Create, delete, get, and update segments.
Namespace
CdpSegment Methods
The following are methods for CdpSegment. All
methods are static.
createSegment(input)
API Version
55.0
Requires Chatter
No
Signature
public static ConnectApi.CdpSegmentOutput createSegment(ConnectApi.CdpSegmentInput input)
Parameters
- input
- Type: ConnectApi.CdpSegmentInput
- A ConnectApi.CdpSegmentInput class.
Return Value
deleteSegment(segmentId)
API Version
55.0
Requires Chatter
No
Signature
public static Void deleteSegment(String segmentId)
Parameters
- segmentId
- Type: String
- ID of the segment.
Return Value
Type: Void
getSegment(segmentId)
API Version
55.0
Requires Chatter
No
Signature
public static ConnectApi.CdpSegmentContainerOutput getSegment(String segmentId)
Parameters
- segmentId
- Type: String
- ID of the segment.
Return Value
querySegments()
API Version
55.0
Requires Chatter
No
Signature
public static ConnectApi.CdpSegmentContainerOutput getSegments()
Return Value
updateSegment(segmentId, input)
API Version
55.0
Requires Chatter
No
Signature
public static ConnectApi.CdpSegmentOutput updateSegment(String segmentId, ConnectApi.CdpSegmentInput input)
Parameters
- segmentId
- Type: String
- ID of the segment.
- input
- Type: ConnectApi.CdpSegmentInput
- A ConnectApi.CdpSegmentInput class with the updates.