contentType: isPublished

Namespace: microsoft.graph

Check the publishing status of a contentType in 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) Not supported.
Application Sites.FullControl.All

HTTP request

GET /sites/{siteId}/contentTypes/{contentTypeId}/isPublished

Note: The siteId represents a content type hub site.

Request headers

Name Description
Authorization Bearer {token}. Required.

Response

If successful, this method returns a 200 OK response code and a Boolean value that specifies the publishing status of the content type.

Request body

Do not supply a request body for this method.

Example

Request

The following is an example of a request.

GET https://graph.microsoft.com/v1.0/sites/{siteId}/contentTypes/{contentTypeId}/isPublished

Response

The following is an example of the response.

HTTP/1.1 200 OK
Content-type: application/json

{
  "value": true 
}