PlaceTemplate
PlaceTemplate Service
Web service endpoints for managing page templates.
Since: 3.9
Create Place Template
POST /placeTemplates
Create a new place template with the specified characteristics.
Query Parameters:
Name | Type | Required | Description |
---|
fields | String | false | Fields to include in the returned PlaceTemplate |
Takes:
PlaceTemplate describing the place template to be createdRetrieves:
PlaceTemplateReturn Status:
HTTP Status Code | Description |
---|
400 (Bad Request) | An input field is missing or malformed |
409 (Conflict) | The new entity would conflict with system restrictions |
403 (Forbidden) | You are not allowed to create place templates |
Destroy Place Template
DELETE /placeTemplates/{placeTemplateID}
Delete the specified place template.
Path Parameters:
Name | Type | Required | Description |
---|
placeTemplateID | String | true | ID of the place template to be deleted |
Return Status:
HTTP Status Code | Description |
---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | You are not allowed to delete the specified place template |
404 (Not Found) | The specified place template cannot be found |
Get Place Template
GET /placeTemplates/{placeTemplateID}
Retrieve and return the specified place template.
Path Parameters:
Name | Type | Required | Description |
---|
placeTemplateID | String | true | ID of the place template to be returned |
Query Parameters:
Name | Type | Required | Description |
---|
fields | String | false | Fields to be returned |
Retrieves:
PlaceTemplateReturn Status:
HTTP Status Code | Description |
---|
200 (OK) | Request was successful |
400 (Bad Request) | If an input field is missing or malformed |
404 (Not Found) | If the specified place template cannot be found |
Get Place Templates
GET /placeTemplates
Return a paginated list of place templates that match the specified filter criteria.
This service supports the following filters. Parameters, when used, should be wrapped
in parentheses, and multiple values separated by commas. See the examples for clarification.
Filter |
Params |
Example |
author |
one person URI
|
?filter=author(http://domain/api/core/v3/people/12) |
name |
place template name
|
?filter=name(bestPracticesSharing) |
displayName |
display name of the tile definition. This filter must be used together with the
author filter
|
?filter=displayName(template.bestPracticesSharing.name)&author(http://domain/api/core/v3/people/12) |
global |
boolean value.
|
?filter=global(true) |
state |
filter by state of the place templates
|
?filter=state(published) |
This service supports the following sort types.
Sort |
Description |
dateCreatedAsc |
Sort by the date this place template was created, in ascending order |
dateCreatedDesc |
Sort by the date this place template was created, in descending order. Default if none was specified. |
Query Parameters:
Name | Type | Required | Description |
---|
sort | String | false | The requested sort order |
startIndex | Integer | false | The zero-relative index of the first matching place template to be returned |
count | Integer | false | The maximum number of place templates to be returned |
fields | String | false | The fields to be returned on each place template |
filter | Object[] | false | The filter criteria used to select place templates |
Retrieves:
PlaceTemplate[] of the matched place templatesReturn Status:
HTTP Status Code | Description |
---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is malformed |
Update Place Template
PUT /placeTemplates/{placeTemplateID}
Update the specified place template with the specified characteristics.
Path Parameters:
Name | Type | Required | Description |
---|
placeTemplateID | String | true | ID of the place template to be updated |
Query Parameters:
Name | Type | Required | Description |
---|
fields | String | false | Fields to include in the returned entity |
Takes:
PlaceTemplate representing the updated place templateRetrieves:
An PlaceTemplate representing the updated place templateReturn Status:
HTTP Status Code | Description |
---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | You are not allowed to access the specified place template |
404 (Not Found) | The specified place template cannot be found |
409 (Conflict) | The updated entity would conflict with system restrictions |