Add Child Node To The Navigation Node
/v1/portal/navigationnodes/{id}/childNodes
Request
-
id: string
The short id of the parent navigation node under which the child node will be added to
object
-
country(optional):
string
-
displayCountry(optional):
string
-
displayLanguage(optional):
string
-
displayName(optional):
string
-
displayScript(optional):
string
-
displayVariant(optional):
string
-
iSO3Country(optional):
string
-
iSO3Language(optional):
string
-
language(optional):
string
-
script(optional):
string
-
unicodeLocaleAttributes(optional):
array unicodeLocaleAttributes
-
unicodeLocaleKeys(optional):
array unicodeLocaleKeys
-
variant(optional):
string
object
-
accessible(optional):
boolean
-
annotatedExceptionTypes(optional):
array annotatedExceptionTypes
-
annotatedParameterTypes(optional):
array annotatedParameterTypes
-
annotatedReceiverType(optional):
object reflect.AnnotatedType
-
annotatedReturnType(optional):
object reflect.AnnotatedType
-
bridge(optional):
boolean
-
default(optional):
boolean
-
defaultValue(optional):
integer
-
genericExceptionTypes(optional):
array genericExceptionTypes
-
genericParameterTypes(optional):
array genericParameterTypes
-
genericReturnType(optional):
object reflect.Type
-
modifiers(optional):
integer(int32)
-
name(optional):
string
-
parameterCount(optional):
integer(int32)
-
parameters(optional):
array parameters
-
synthetic(optional):
boolean
-
typeParameters(optional):
array typeParameters
-
varArgs(optional):
boolean
object
-
annotatedType(optional):
object reflect.AnnotatedType
-
declaringExecutable(optional):
object reflect.Executable
-
implicit(optional):
boolean
-
modifiers(optional):
integer(int32)
-
name(optional):
string
-
namePresent(optional):
boolean
-
parameterizedType(optional):
object reflect.Type
-
synthetic(optional):
boolean
-
varArgs(optional):
boolean
object
-
accessible(optional):
boolean
-
annotatedExceptionTypes(optional):
array annotatedExceptionTypes
-
annotatedParameterTypes(optional):
array annotatedParameterTypes
-
annotatedReceiverType(optional):
object reflect.AnnotatedType
-
annotatedReturnType(optional):
object reflect.AnnotatedType
-
genericExceptionTypes(optional):
array genericExceptionTypes
-
genericParameterTypes(optional):
array genericParameterTypes
-
modifiers(optional):
integer(int32)
-
name(optional):
string
-
parameterCount(optional):
integer(int32)
-
parameters(optional):
array parameters
-
synthetic(optional):
boolean
-
typeParameters(optional):
array typeParameters
-
varArgs(optional):
boolean
Response
- application/json
400 Response
403 Response
404 Response
Examples
To insert childNode to Navigation Node of Portal in Oracle WebCenter Portal submit a POST request on the REST resource. Use the following format to submit a POST request using cURL:
curl -i -X POST -H 'Content-Type: application/json'-d @insertNavigationNode.json http://host:portal/rest/api/v1/portal/navigationnodes/{nodeId}/childNodes?utoken=
In the cURL command insertNavigationNode.json
is the JSON file containing the request body for the request. hostname:port
is the name of the host and the IP port where Oracle WebCenter Portal is running. For example, example.com:8888
. utoken
is the API token for accessing the portal APIs. For example, utoken=utoken=abcdIC05zgjZoqCF8ShWL42AhTVvq-fc8uFshnw%2A%2A
.
-
hostname:port
is the name of the host and the IP port where Oracle WebCenter Portal is running. For example,example.com:8888.
-
utoken
is the API token for accessing the portal APIs. For example,utoken=utoken=abcdIC05zgjZoqCF8ShWL42AhTVvq-fc8uFshnw%2A%2A
. For more information, see Authentication.
Example of Request Payload
The following is the sample of the insertNavigationNode.json
file containing the body for the request and shows how to insert a page to Navigation Node. The RestPage is the page name and RestPortal is the Portal name.
{ "name": "RestPage", "namespace": "pageStyle", "portalName": "RestPortal" }
HTTP Status Code
HTTP_STATUS = 201
Example of Response Body
{ "resourceType": "urn:oracle:webcenter:portal:page", "pageStyle": "/oracle/webcenter/siteresources/scopedMD/s8bba98ff_4cbb_40b8_beee_296c916a23ed/pageStyle/gsr1b60e8a7_2e23_48ff_9571_31ede592de01/TemplateBlank.jspx", "overridePolicy": false, "permissionClass": "oracle.webcenter.security.auth.NavigationResourcePermission", "locked": false, "fileName": "Page662d449a_b506_42a5_83a9_ef59eb87d27b.jspx", "publishedVersion": 0, "pageStyleBean": { "links": [ { "href": "http://slc14url.us.oracle.com:8888/rest/api/v1/portal/pages/Eeg/pageStyle?utoken=IEM4UE4n8YG6ZA8fay8b18oTSMmgI8qC7cKAy6vzPqfz_w%2A%2A", "rel": "alternate", "resourceType": "urn:oracle:webcenter:portal:pagestyle", "capabilities": "urn:oracle:webcenter:read urn:oracle:webcenter:delete" }, { "href": "http://slc14url.us.oracle.com:8888/rest/api/v1/portal/pagestyles/FQ?utoken=IEM4UE4n8YG6ZA8fay8b18oTSMmgI8qC7cKAy6vzPqfz_w%2A%2A", "rel": "self", "resourceType": "urn:oracle:webcenter:portal:pagestyle", "capabilities": "urn:oracle:webcenter:read urn:oracle:webcenter:delete urn:oracle:webcenter:update" } ], "resourceType": "urn:oracle:webcenter:portal:pagestyle", "namespace": "pageStyle", "portalName": "DefaultGroupSpace", "name": "Blank" }, "pageDefinitionPath": "/pageDefs/oracle/webcenter/page/scopedMD/s7edf2c3d_f10c_4db4_a961_297ca6c2f806/Page662d449a_b506_42a5_83a9_ef59eb87d27bPageDef.xml", "sourcePath": "/oracle/webcenter/siteresources/scopedMD/s8bba98ff_4cbb_40b8_beee_296c916a23ed/pageStyle/gsr1b60e8a7_2e23_48ff_9571_31ede592de01/TemplateBlank.jspx", "pagePath": "/oracle/webcenter/page/scopedMD/s7edf2c3d_f10c_4db4_a961_297ca6c2f806/Page662d449a_b506_42a5_83a9_ef59eb87d27b.jspx", "pageViewType": "JSPX", "description": "Vertically stacked content in a single column", "created": "2021-01-13T08:29:18.195Z", "namespace": "pageStyle", "modifier": "weblogic", "creator": "weblogic", "currentVersionId": "67b0193d-5d2b-45d3-aedb-658330a17775", "modified": "2021-01-13T08:29:18.295Z", "securityId": "serviceID=oracle.webcenter.page,scopeID=s7edf2c3d_f10c_4db4_a961_297ca6c2f806,resourceID=s7edf2c3d_f10c_4db4_a961_297ca6c2f806", "name": "RestPage4", "id": "662d449a-b506-42a5-83a9-ef59eb87d27b", "locale": "en_US", "shortId": "Eeg" } } ]