contentType: unpublish

Namespace: microsoft.graph

Unpublish a contentType from a content type hub site.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Sites.FullControl.All
Delegated (personal Microsoft account) Sites.FullControl.All
Application Sites.FullControl.All

HTTP request

POST /sites/{siteId}/contentTypes/{contentTypeId}/unpublish

Note: The siteId represents a content type hub site.

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response.

Example

Request

POST https://graph.microsoft.com/v1.0/sites/{siteId}/contentTypes/{contentTypeId}/unpublish

Response

HTTP/1.1 204 No Content