Add Child Node To The Navigation Node

post

/v1/portal/navigationnodes/{id}/childNodes

This API inserts a child node under a Parent Navigation Node.

Request

Path Parameters
  • The short id of the parent navigation node under which the child node will be added to
Body ()
Reference of the child node to be added
Root Schema : navigationnode
Type: object
Show Source
Nested Schema : linkStates
Type: array
Show Source
Nested Schema : Locale
Type: object
Show Source
Nested Schema : Linked
Type: object
Show Source
Nested Schema : reference
Type: object
Show Source
Nested Schema : LinkElementState
Type: object
Show Source
Nested Schema : pathLinkValues
Type: array
Show Source
Nested Schema : pathLinkWildcards
Type: array
Show Source
Nested Schema : reflect.Method
Type: object
Show Source
Nested Schema : annotatedExceptionTypes
Type: array
Show Source
Nested Schema : annotatedParameterTypes
Type: array
Show Source
Nested Schema : reflect.AnnotatedType
Type: object
Show Source
Nested Schema : genericExceptionTypes
Type: array
Show Source
Nested Schema : genericParameterTypes
Type: array
Show Source
Nested Schema : reflect.Type
Type: object
Show Source
Nested Schema : parameters
Type: array
Show Source
Nested Schema : typeParameters
Type: array
Show Source
Nested Schema : reflect.Parameter
Type: object
Show Source
Nested Schema : reflect.Executable
Type: object
Show Source
Nested Schema : annotatedExceptionTypes
Type: array
Show Source
Nested Schema : annotatedParameterTypes
Type: array
Show Source
Nested Schema : genericExceptionTypes
Type: array
Show Source
Nested Schema : genericParameterTypes
Type: array
Show Source
Nested Schema : parameters
Type: array
Show Source
Nested Schema : typeParameters
Type: array
Show Source
Nested Schema : reflect.TypeVariable
Type: object
Show Source
Nested Schema : annotatedBounds
Type: array
Show Source
Nested Schema : bounds
Type: array
Show Source
Nested Schema : unicodeLocaleAttributes
Type: array
Show Source
Nested Schema : unicodeLocaleKeys
Type: array
Show Source
Nested Schema : linkStates
Type: array
Show Source
Nested Schema : linkStates
Type: array
Show Source
Back to Top

Response

Supported Media Types

400 Response

Bad request: ill-formatted content in request

403 Response

Invalid utoken supplied

404 Response

Invalid short id supplied
Back to Top

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"
	  }
    }
  ]
Back to Top