osapi.jive.corev3.places.Category
A Category
is a way to organize content within a place. Categories have a name, tags, and a parent place.
When creating or updating content, you can specify a list of categories for that content object. An example JSON representation looks
like this:
{ "name" : "Animals", "tags" : [ ], "place" : "https://example.jiveon.com/api/core/v3/places/1116", "id" : "1002", "resources" : { "self" : { "ref" : "https://example.jiveon.com/api/core/v3/places/1116/categories/1002", "allowed" : [ "GET", "DELETE", "PUT" ] } } }
Example:
Create Category
Read createCategory() to learn how to create a new category.
Properties
Property | Type | Mode † | Description |
---|---|---|---|
description | String | optional | ↑ Description of the category. |
followerCount | Integer | read-only | ↑ Number of people following this object. Availability:Will be present only for object types that support being followed. |
id | String | read-only | ↑ Identifier (unique within an object type and Jive instance) of this object. This field is internal to Jive and should not be confused with contentID or placeID used in URIs. |
likeCount | Integer | read-only | ↑ Number of people who have liked this object. Availability:Will be present only for object types that support being liked. |
name | String | required | ↑ Name of the category. |
place | String | read-only | ↑ URI of the place where this category belongs. |
published | ISO 8601 Date | read-only | ↑ Date and time this object was originally created. |
resources | Object | read-only | ↑ Resource links (and related permissions for the requesting person) relevant to this object. |
| String[] | optional | ↑ Tags associated with this object. |
type | String | required | ↑ The object type for this object ("category"). This field is required when creating new content. |
updated | ISO 8601 Date | read-only | ↑ Date and time this object was most recently updated. |
Methods
destroy()
DELETE /places/1234/categories/1002
Retrieves
--
Description
Delete the existing category for the specified place. Only admins of the place can manage place categories.
get(options)
GET /places/1234/categories/1002
Retrieves
Category
Description
Return an updated version of this category.
Options:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | The names of the fields to be returned |
Retrieves:
toURI()
Retrieves
String
Description
Retrieves:
update(options)
PUT /places/1234/categories/1002
Retrieves
Category
Description
Update the information about this category.
Options:
Name | Type | Required | Description |
---|---|---|---|
autoCategorize | String | false | Boolean indicating whether existing content of the place will be categorized under the new category |