Unpublish a taxonomy
post
/content/management/api/v1.1/taxonomies/{id}/unpublish
from the selected channels. Taxonomy will no longer be available for the selected channels and any existing categorization information on assets will also be removed. User needs to be a contributor on selected channels. Only one unpublish or publish request at a time can be active on a taxonomy. If unpublishing is in progress on a taxonomy, any subsequent requests will result in failure until the initial unpublishing has completed.
Request
Path Parameters
-
id: string
id of the taxonomy.
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
Taxonomy unpublishing request payload. Currently, only published taxonomies can be unpublished and thus the status and the version are not used. This is an asynchronous operation. Asynchronous request is responded with 202 status with a status link in the location header.
Root Schema : TaxonomyOperationUnPublishRequest
Type:
object
Taxonomy Operation UnPublish Request
Show Source
-
channels(optional):
array channels
List of unpublish channels. If channels is not empty, taxonomy is unpublished from given channels. Only channels in the list will be used to unpublish the taxonomy. Parameter channels is mandatory and, in case it is empty, an error message will be returned.
-
status(optional):
string
Status of the Taxonomy (draft/promoted). This is ignored for unpublishing request since only published taxonomies can be unpublished.
-
version(optional):
integer(int32)
Version of a Taxonomy. The version field is currently ignored.
Nested Schema : channels
Type:
array
List of unpublish channels. If channels is not empty, taxonomy is unpublished from given channels. Only channels in the list will be used to unpublish the taxonomy. Parameter channels is mandatory and, in case it is empty, an error message will be returned.
Show Source
-
Array of:
object ChannelId
ChannelId
Nested Schema : ChannelId
Type:
object
ChannelId
Show Source
-
id(optional):
string
-
isPrimaryChannel(optional):
boolean
Indicates if channel is primary for an asset.
-
links(optional):
array links
Links
-
name(optional):
string
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Response
Supported Media Types
- application/json
202 Response
Accepted.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Taxonomy not found. The requested resource not found.
409 Response
The requested resource operation is temporarily unavailable
500 Response
Internal server error.