contentType: publish

Namespace: microsoft.graph

Publishes a contentType present in the 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}/publish

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 call returns a 204 No Content response.

Example

Request

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

Response

HTTP/1.1 204 No Content