Create a Portal
/v1/portal/portals
The following are the mandatory parameters to create a portal: name
and displayname
.
Request
- application/json
object
-
acronym(optional):
string
-
adminMailingList(optional):
string
-
allMailingList(optional):
string
-
ancestorPath(optional):
string
-
applicationID(optional):
string
-
copyrightMessage(optional):
string
-
created(optional):
string(date-time)
-
creationStatus(optional):
string
-
creator(optional):
string
-
currentVersionId(optional):
string
-
defaultLanguage(optional):
string
-
description(optional):
string
-
displayName:
string
Name of the portal as displayed to users.
-
documentRef(optional):
string
-
enabledTools(optional):
string
-
helpPage(optional):
string
-
icon(optional):
string
-
iconScaled(optional):
string
-
id(optional):
string
-
includedServices(optional):
array includedServices
-
includeMembers(optional):
boolean
-
includeRoles(optional):
boolean
-
inviteWebCenterUsersEnabled(optional):
string
-
isBlockAllAccess(optional):
boolean
-
isClosed(optional):
boolean
-
isDiscoverable(optional):
boolean
- isFooterHidden(optional): boolean
-
isOnline(optional):
boolean
-
isPageCreationSettingInstantCreate(optional):
boolean
-
isPublic(optional):
boolean
-
isPublishRSS(optional):
boolean
-
isSeeded(optional):
boolean
-
isSelfRegistration(optional):
boolean
-
isWorkflowApprovalSubscriptionApprovalRequired(optional):
boolean
-
isWorkflowApprovalSubscriptionEnableAllRoles(optional):
boolean
-
isWorkflowApprovalUnsubscriptionApprovalRequired(optional):
boolean
-
isWorkflowApprovalUnsubscriptionEnableAllRoles(optional):
boolean
-
javaFormatId(optional):
string
-
keywords(optional):
string
-
link(optional):
array link
-
linkStates(optional):
array linkStates
-
locale(optional):
object Locale
-
loginFailedPage(optional):
object Linked
-
loginPage(optional):
object Linked
-
logo(optional):
string
-
logoScaled(optional):
string
-
memberCount(optional):
integer(int32)
-
modified(optional):
string(date-time)
-
modifier(optional):
string
-
name:
string
Name of the portal. Note the name of the portal is without space. For example, HRportal.
-
namespace(optional):
string
- navigationRootNode(optional): object Linked
-
newVersionId(optional):
string
-
offlinePage(optional):
object Linked
-
pageCreationSettingScheme(optional):
string
-
pageCreationStyle(optional):
object Linked
-
portalColor(optional):
string
-
portalLifecycleStateLastChangedBy(optional):
string
-
portalLifecycleStateLastChangedDate(optional):
string(date-time)
-
portalLifecycleStateMode(optional):
string
-
preview(optional):
string
-
previewScaled(optional):
string
-
privacyPolicyURL(optional):
string
-
reference(optional):
object reference
-
reorderDeviceGroups(optional):
boolean
-
resourceCatalogForGroupSpaceSiteTemplates(optional):
object Linked
-
resourceType(optional):
string
-
securityId(optional):
string
-
securitySeededRoles(optional):
string
-
securitySeededUsers(optional):
string
-
securitySubscriptionMessagesAddMember(optional):
string
-
securitySubscriptionMessagesInviteMember(optional):
string
-
securitySubscriptionMessagesInviteNonMember(optional):
string
-
selfRegistrationDefaultRole(optional):
string
-
selfRegistrationPage(optional):
string
-
serviceDataCopied(optional):
string
-
shortId(optional):
string
-
skin(optional):
object Linked
-
subGSCount(optional):
integer(int32)
-
supportedLanguages(optional):
string
-
workflowApprovalSubscriptionRoleWorkflows(optional):
string
-
workflowApprovalUnsubscriptionRoleWorkflows(optional):
string
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
201 Response
400 Response
403 Response
415 Response
Examples
You can create portal using REST API. When you create a portal, you become the default portal manager, and assigned the Portal Manager role. In this role, you have the Manage Security and Configuration permission in the portal, which provides full control over the portal presentation and content, as well as administrative responsibilities.
To create a portal submit a POST request on the REST resource and you must specify the following required parameters in the request body:.
-
name:
The name of the portal. Note the name of the portal is without space and should be unique. -
displayName:
The name of the portal as displayed to the users.
Use the following format to submit a POST request using cURL:
curl -i -X POST
-H 'Content-Type: application/json'
-d @create-portal.json
http://hostname:port/rest/api/v1/portal/portals?utoken=utoken
where
-
create-portal.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
. For more information, see Authentication.
Example of a Request Body
The following is the sample of the create-portal.json
file containing the body for the request and shows how to create a portal using the default template:
{ "name": "HRPortal", "displayName": "HR Portal", "description": "Simple portal created using JSON", "keywords": "portal,JSON", "isPublic": true, }
The following is the sample of the create-portal.json
file containing the body for the request and shows how to create a portal using a custom template:
{ "name" : "PortalRest1", "displayName" : "PortalRest", "keywords" : "portal,JSON", "description" : "Advanced portal template created using JSON", "reference":{"name":"Template1","namespace":"portalTemplate"} }
HTTP Status Code
HTTP_STATUS = 201 Created
Example of Response Body
In this example, you can view the details of the new portal. Note the shortId
of the portal, which is used to retrieve additional information about a portal and to perform other operations. For example, retrieve information about resource catalog or skins of a portal or add member to the portal.
{
"resourceType": "urn:oracle:webcenter:portal:portal",
"keywords": "portal,JSON",
"displayName": "PortalCreationJson1585394",
"icon": "/oracle/webcenter/siteresources/scopedMD/shared/images/portalnew_icon.png",
"logo": "/oracle/webcenter/siteresources/scopedMD/shared/images/portalnew_logo.png",
"preview": "/oracle/webcenter/siteresources/scopedMD/shared/images/portalnew_logo.png",
"creationStatus": "Completed",
"supportedLanguages": "English-US, English-UK",
"allMailingList": "yourCommunityName@example.com",
"adminMailingList": "yourCommunityName-admin@example.com",
"copyrightMessage": "DeFaUlT-MeSsAgE",
"privacyPolicyURL": "DeFaUlT-MeSsAgE",
"securitySeededUsers": "admin",
"securitySeededRoles": "Moderator",
"pageCreationSettingScheme": "WCSchemeNone",
"portalLifecycleStateMode": "active",
"portalLifecycleStateLastChangedBy": "admin",
"acronym": "ABC",
"portalColor": "#000000",
"subGSCount": 0,
"reorderDeviceGroups": false,
"isPublic": true,
"memberCount": 1,
"isSeeded": false,
"templateName": "Portal",
"navigationRootNode": {
"resourceType": "urn:oracle:webcenter:portal:navigationnode",
"portalName": "PortalCreationJson1528394",
"namespace": "",
"name": "root"
},
"isOnline": true,
"isWorkflowApprovalUnsubscriptionApprovalRequired": true,
"isBlockAllAccess": false,
"javaFormatId": "175a26a2124d",
"isFooterHidden": false,
"isWorkflowApprovalSubscriptionEnableAllRoles": true,
"isDiscoverable": true,
"isPublishRSS": false,
"isSelfRegistration": false,
"isWorkflowApprovalSubscriptionApprovalRequired": true,
"isWorkflowApprovalUnsubscriptionEnableAllRoles": true,
"isPageCreationSettingInstantCreate": false,
"isClosed": false,
"description": "Simple portal created using JSON",
"modifier": "wdmin",
"shortId": "Aoc",
"securityId": "space/b41a_175a26a2124d",
"creator": "admin",
"modified": "2018-08-08T09:09:21.518Z",
"created": "2018-08-08T09:09:09.528Z",
"currentVersionId": "1483-9ed7048",
"namespace": "portal",
"locale": "en_US",
"id": "9df08ac6-243d-483e-b41a-175a26a2124d",
"name": "PortalCreationJson1528994"
}