Publisher Documents
Post Page Template
post/api/v1/entities/workspaces/{workspaceId}/pageTemplates
Request
- Base URLhttps://www.gooddata.ai
- Authnone declared
Path parameters
workspaceIdstring required
Query parameters
includestring[]
Array of included collections or individual relationships. Includes are separated by commas (e.g. include=entity1s,entity2s). Collection include represents the inclusion of every relationship between this entity and the given collection. Relationship include represents the inclusion of the particular relationships only. If single parameter "ALL" is present, all possible includes are used (include=ALL).
WARNING: Individual include types (collection, relationship or ALL) cannot be combined together.
metaIncludestring[]
Included meta objects
Include Meta objects.
Request body
Example request
{
"data": {
"attributes": {
"content": {
"kind": "content",
"layout": {
"children": [
{
"id": "pageTitle",
"placeholder": {
"hint": "Page title"
},
"proportion": 2,
"style": {
"textStyle": "title"
},
"type": "title"
},
{
"children": [
{
"children": [
{
"id": "widget1",
"placeholder": {
"hint": "Add a visualization"
},
"title": {
"visible": true
},
"type": "visualization"
},
{
"id": "widget2",
"placeholder": {
"hint": "Add a visualization"
},
"title": {
"visible": true
},
"type": "visualization"
}
],
"proportion": 2,
"type": "row"
},
{
"id": "summary",
"placeholder": {
"hint": "Add a summary"
},
"proportion": 1,
"style": {
"textStyle": "normalText"
},
"type": "text"
}
],
"proportion": 9,
"type": "row"
},
{
"children": [
{
"decorative": true,
"id": "footerLogo",
"proportion": 1,
"source": "{theme.logo}",
"style": {
"fit": "contain",
"horizontalAlign": "left",
"verticalAlign": "bottom"
},
"type": "image"
},
{
"decorative": true,
"id": "footerPageNumber",
"markdown": "{currentPageNumber} / {totalPages}",
"proportion": 8,
"style": {
"horizontalAlign": "right",
"textStyle": "largeText",
"verticalAlign": "bottom"
},
"type": "text"
}
],
"proportion": 1,
"type": "row"
}
],
"type": "column"
}
},
"version": "2"
},
"id": "id1",
"type": "pageTemplate"
}
}Response
Request successfully processed
Example response
{
"data": {
"attributes": {
"content": {
"kind": "content",
"layout": {
"children": [
{
"id": "pageTitle",
"placeholder": {
"hint": "Page title"
},
"proportion": 2,
"style": {
"textStyle": "title"
},
"type": "title"
},
{
"children": [
{
"children": [
{
"id": "widget1",
"placeholder": {
"hint": "Add a visualization"
},
"title": {
"visible": true
},
"type": "visualization"
},
{
"id": "widget2",
"placeholder": {
"hint": "Add a visualization"
},
"title": {
"visible": true
},
"type": "visualization"
}
],
"proportion": 2,
"type": "row"
},
{
"id": "summary",
"placeholder": {
"hint": "Add a summary"
},
"proportion": 1,
"style": {
"textStyle": "normalText"
},
"type": "text"
}
],
"proportion": 9,
"type": "row"
},
{
"children": [
{
"decorative": true,
"id": "footerLogo",
"proportion": 1,
"source": "{theme.logo}",
"style": {
"fit": "contain",
"horizontalAlign": "left",
"verticalAlign": "bottom"
},
"type": "image"
},
{
"decorative": true,
"id": "footerPageNumber",
"markdown": "{currentPageNumber} / {totalPages}",
"proportion": 8,
"style": {
"horizontalAlign": "right",
"textStyle": "largeText",
"verticalAlign": "bottom"
},
"type": "text"
}
],
"proportion": 1,
"type": "row"
}
],
"type": "column"
}
},
"createdAt": "2023-07-20 12:30",
"modifiedAt": "2023-07-20 12:30",
"version": "2"
},
"id": "id1",
"type": "pageTemplate"
},
"included": [
{
"id": "id1",
"type": "userIdentifier"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.