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
- application/json
- application/xml
Path Parameters
-
contentTypeId: string
The content type identifier
Query Parameters
-
totalDocumentCount(optional): string
If this is true, then the response will have totalDocumentCount populated, and not publicDocumentCount
Response
Supported Media Types
- application/json
- application/xml
204 Response
No Content.
Root Schema : ContentTypeMetadata
Type:
object
Title:
Show Source
ContentTypeMetadata
-
documentAttachmentCount(optional):
integer
DocumentAttachmentCount of the ContentTypeMetadata object
-
documentCount(optional):
integer
DocumentCount of the ContentTypeMetadata object
-
publicDocumentCount(optional):
integer
PublicDocumentCount of the ContentTypeMetadata object
-
totalDocumentCount(optional):
integer
TotalDocumentCount of the ContentTypeMetadata object
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 }