Newer Version Available

This content describes an older version of this product. View Latest

Data Cloud Segments

Get segments or create a segment.
Resource
1/ssot/segments
Available version
55.0
HTTP methods
GET, POST
Request parameters for GET
Parameter Name Type Description Required or Optional Available Version
batchSize Integer Number of items to return. Values are from 1–200. If unspecified, the default value is 20. Optional 56.0
dataspace String Name of the dataspace in which to perform the action. User must have permission to this dataspace. Optional when bulk-listing segments. If unspecified, default is the default dataspace. Optional 58.0
offset Integer Number of rows to skip before returning results. If unspecified, no rows are skipped. Optional 56.0
orderby String Sort order for the result set, such as Name ASC or MarketSegmentType DESC. If unspecified, items are returned by ID in ascending order. Optional 56.0
Response body for GET
Data Cloud Segment Container Output
Request body for POST
Root XML tag
<cdpSegment>
JSON example
1{
2"developerName": "ConnectSegment20",
3"description": "This is a connect API segment",
4"includeDbt": {
5   "models": {
6      "models": [
7         {
8         "name": "m1",
9         "sql": "select ssot__Individual__dlm.ssot__Id__c from ssot__Individual__dlm where ssot__Individual__dlm.ssot__FirstName__c='john'"
10         }
11      ]
12   }
13   },
14"segmentType": "Dbt"
15}
Properties
Name Type Description Required or Optional Available Version
additionalMetadata Map<String, String> Map of additional metadata. Optional for POST

Not supported for PATCH

55.0
dataSpace String Segment dataspace. In API version 59.0 and later, this property is not available. Use the dataspace request parameter instead. Optional 57.0–58.0
description String Segment description. Optional 55.0
developerName String Segment developer name. Required for POST

Not supported for PATCH

55.0
displayName String Segment display name. Optional 57.0
includeDbt Data Cloud Segment Dbt Input Segment data build tool. Required 55.0
publishSchedule String Publish refresh schedule. Values are:
  • One—Refreshes every hour. Used to rapidly publish UI and DBT-based segments.
  • Four—Refreshes every four hours. Used to rapidly publish UI and DBT-based segments.
  • Twelve—Refreshes every twelve hours.
  • TwentyFour—Refreshes every twenty-four hours.
Optional 55.0
publishSchedule​EndDate String Date indicating the end of the publish schedule. Optional if publishSchedule isn’t specified 55.0
publishSchedule​StartDateTime String Datetime indicating the start of the publish schedule. Optional if publishSchedule isn’t specified 55.0
segmentOnApiName String API name of the SegmentOn entity. Optional 57.0
segmentType String Type of segment. Value is:
  • Dbt—Data build tool
After a segment is created, the segment type can’t be changed.
Required for POST

Not supported for PATCH

55.0
Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
dataspace String Name of the dataspace in which to perform the action. User must have permission to this dataspace. Default is the default dataspace.
  • In API version 58.0, if specified, this parameter overrides the dataSpace request body property. If this parameter is unspecified, the dataSpace request body property is used.
  • In API version 58.0, if neither this parameter nor the dataSpace request body property is specified, the default dataspace is used.
  • In API version 59.0 and later, use this parameter. The dataSpace request body property is not available.
Optional 58.0
Response body for POST
Data Cloud Segment Output