---
schema_version: "1"
id: 0a7aeea449ef57cfc668b9848a71b271e0877b6f9535d83f89839b6912cc3ce5
title: ConnectApi.ManagedContentUnpublishInput
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_input_managed_content_unpublish.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_input_managed_content_unpublish.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 55ade7b0fcba148bee44bd4f0917e28a69692843781a34a1d1347d250684e86f
description: Input for unpublishing content.
---
# ConnectApi.ManagedContentUnpublishInput

Input for unpublishing 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 unpublish. All variants of the content are unpublished. | Required if variantIds isn’t specified | 60.0 |
| contextContent​SpaceId | String | ID of the context workspace. If specified, content from other workspaces is unpublished 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 unpublish action. | 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 unpublish. All variants must be from the same content space. | Required if contentIds isn’t specified | 60.0 |