---
schema_version: "1"
id: a9daa8670e5a7529a3647f1bf83c0850bde1fb86a921272602d626c43b7823ac
title: ConnectApi.CdpSegmentActionOutput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_cdp_segment_action_output.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cdp_segment_action_output.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9297426e75612a21d39a11667c5f276920c9d28824ddc0191544e5fe7ecdd13a
description: Segment action.
---
# ConnectApi.CdpSegmentActionOutput

Segment action.

Subclass of [ConnectApi.CdpActionResponse](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_cdp_action_response_base.htm "Customer Data Platform action response.") in API version 59.0 and later.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| errorCode | String | Error code associated with the action, if any. | 57.0 |
| errorMessage | String | Error message associated with the action, if any. | 57.0 |
| jobId | String | Job ID for the publish job. | 56.0 |
| partitionId | String | ID of the partition. | 56.0 |
| publishStatus | String | Publish status of the segment. | 57.0 |
| segmentApiName | String | API name of the segment. | 59.0 |
| segmentId | String | ID of the segment. | 56.0 |