Page
Page Service
Person pages ("Your View") and Activity place pages behave differently than other pages. Your View and Activity have specific layouts and naming restrictions. They are not available for retrieval until they are created via an API call or modified via the UI. Until then, a default page is rendered when a user visits Your View or Activity and these pages will NOT be returned when calling getPages(placeID, filters, fields) and getPages(personID, filters, fields)
Since: 3.9
Create Page
POST /pages
Create a page for a person or place as specified by parent.
The number pages that can be created per place is determined by the system property
jive.pages.current.max
Example:
curl -u admin:password -X POST -H "Content-Type: application/json" -d "@create-page.json" http://example.jiveon.com/api/core/v3/pages
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | The fields to be returned on each instance |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
400 (Bad Request) | An input field is missing or malformed |
404 (Not Found) | The specified instance cannot be found |
403 (Forbidden) | You are not allowed to perform this operation |
409 (Conflict) | The new entity would conflict with system restrictions (such as duplicate names or pages limit) |
Destroy Page
DELETE /pages/{pageID}
Delete the specified page.
Example:
curl -u admin:password -X DELETE http://example.jiveon.com/api/core/v3/pages/1234
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
pageID | String | true | ID of the page to be deleted |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | The pageID was not a valid identifier |
403 (Forbidden) | You are not allowed to delete this page |
404 (Not Found) | A page with this pageID does not exist |
Get Page
GET /pages/{pageID}
Retrieve a page by ID
Example:
curl -u admin:password -X GET http://example.jiveon.com/api/core/v3/pages/1234
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
pageID | String | true | ID of the page to retrieve |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
400 (Bad Request) | The pageID was not a valid identifier |
403 (Forbidden) | You are not allowed to view this page |
404 (Not Found) | A page with this pageID does not exist |
Get Prototype Page
GET /pages/prototype
Return a new page, that is not persistent, based on the specified place template. From the Page that is returned by this service, you must supply the following in order to persist it:
- layout (see Page layout field for options)
- for each TileInstance, specify a target column in the chosen or default layout
- for each ExternalActivity, specify a target column in the chosen or default layout
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
placeTemplateID | String | true | placeTemplateID ID of the place template to be used as a template for the new page |
placeURI | String | true | placeURI the place that will own the new page once it is saved |
fields | String | false | Fields to be returned |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
400 (Bad Request) | An input field is malformed |
404 (Not Found) | The specified place template does not exist |
403 (Forbidden) | You are not allowed to perform this operation |
Update Page
PUT /pages/{pageID}
Update a page
Example:
curl -u admin:password -X PUT -H "Content-Type: application/json" -d "@page.json" http://example.jiveon.com/api/core/v3/pages
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
pageID | String | true | ID of the page to update |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to be returned |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
400 (Bad Request) | The pageID was not a valid identifier or there is invalid data in the entity parameter |
403 (Forbidden) | You are not allowed to update this page |
404 (Not Found) | A page with this pageID does not exist |
409 (Conflict) | The updated entity would conflict with system restrictions (such as duplicate names) |