Publish a Marketing Cloud Next Segment

Publish an individual segment using the Data 360 Segment Publish endpoint in Connect API.

Prerequisite 

Before you send a request to Connect API, obtain a bearer token. For more information, see Connect to REST-based APIs.

Send the Request 

To publish a segment, send a GET request to the /services/data/{apiVersion}/ssot/segments/SEGMENT_ID/actions/publish endpoint. Replace SEGMENT_ID with the ID of the segment that you want to publish. For additional information and code examples, see publishSegment.

1POST /services/data/{apiVersion}/ssot/segments/SEGMENT_ID/actions/publish HTTP/1.1
2Host: YOUR_SUBDOMAIN.my.salesforce.com
3Content-Type: application/json
4Authorization: Bearer YOUR_BEARER_TOKEN

This POST request doesn’t accept a request body.

Note

If the request is successful, the response body contains information about the request to publish the segment.

1{
2  "errors": [{}],
3  "jobId": "fa7ef500-1385-4892-919e-45e17f78da60",
4  "partitionId": "1sg1Q000000Xy2z_af7f1fed-6086-4f4d-9301-a4c7dde7b032",
5  "publishStatus": "PUBLISHING",
6  "segmentId": "1sg1Q000000Hm2xYAC",
7  "success": true
8}