Get public document count

get

/km/api/v1/contentTypes/{contentTypeId}/publicDocumentCount

This method returns the number of public documents having a content type that matches the specified ID parameter.

Request

Supported Media Types
Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

204 Response

No Content.
Body ()
Root Schema : ContentTypeMetadata
Type: object
Title: ContentTypeMetadata
Show Source
Back to Top

Examples

The following example shows how to find public documents count of a content type with the specified content type ID by submitting a get request on the REST resource using cURL.

curl -X GET "https://<IM_REST_API_HOST>/km/api/latest/contentTypes/{contentTypeId}/publicDocumentCount" -u "<username:password>" -H "Accept: application/json" -H "Content-Type: application/json"

Example of Response Body

The following example shows the contents of the response body in JSON format:

{
  "publicDocumentCount": 179
}
Back to Top