---
schema_version: "1"
id: 23d1f952207fa9171e3b01ecbf71aea0ef9de49f44e91ec17528899e334fc375
title: ConnectApi.ManagedContentPublishInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_managed_content_publish.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_publish.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 851c87515bae894a7b9c22a94126585384da6f69c0b99ebbbda539faef6482ec
description: Input for publishing content.
---
# ConnectApi.ManagedContentPublishInput

Input for publishing content.

| Property | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| contentIds | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String> | IDs of content to publish. All variants of the content are published. | Required if variantIds isn’t specified | 60.0 |
| contextContent​SpaceId | String | ID of the context workspace. If specified, content from other workspaces is published if it is shared to the specified workspace. If unspecified, the context workspace is derived from the content’s origin workspace. All content in the request should belong to the same origin workspace. | Optional | 61.0 |
| description | String | Description for publish action. | Optional | 60.0 |
| includeContent​References | Boolean | Specifies whether to include content references (true) or not (false). | Optional | 60.0 |
| variantIds | [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<String> | IDs of variants to publish. All variants must be from the same content space. | Required if contentIds isn’t specified | 60.0 |