Create a Connection (v2)

Use this REST API to create a service connection to an EPM, NetSuite EPM, Oracle Fusion Apps, or External service using a category-specific request.

Required Roles

Service Administrator

REST Resource

POST /HyperionPlanning/rest/epm/{api_version}/applications/{application}/connections

Request

Supported Media Types: application/json

Required Header: Content-Type: application/json

Table 7-15 Parameters

Name Description Type Required Default
api_version Version of the API. Use v2. Path Yes None
application The name of the application in which to create the connection. Path Yes None

Supply providerCategory to classify the connection. providerType is not part of the V2 request and is rejected if supplied. For Basic EPM/NSEPM connections, the server discovers the concrete provider during target validation.

Table 7-16 Parameters

providerCategory authType Request-Specific Fields Create Behavior
EPM BASIC username and exactly one password field Validates the target and derives Basic metadata before persistence.
NSEPM BASIC username and exactly one password field Uses the same Basic validation and metadata derivation flow.
ERP OAUTH2 erpOAuth2 Persists valid OAuth configuration using UI Save behavior, without a token probe.
EPM OAUTH2 epmOAuth2 Persists OAuth configuration using UI Save behavior.
NSEPM OAUTH2 epmOAuth2 Persists OAuth configuration using UI Save behavior.
EXTERNAL OTHER Optional username or password and optional headers or queryParameters Persists the external-call configuration.

Request Payload:

Table 7-17 Parameters

Name Description Type Required Default
name Non-blank connection name, unique within the application. Maximum 25 characters. Payload Yes None
description Connection description. Maximum 255 characters. Payload No Not specified
url Non-blank HTTPS service URL. Maximum 512 characters. Safe-URL and provider-specific validation applies. Payload Yes None
providerCategory One of EPM, NSEPM, ERP, or EXTERNAL. Payload Yes None
authType Use BASIC, OAUTH2, or OTHER according to the supported-create matrix. Payload Yes None
username Required for BASIC; optional for OTHER; forbidden for OAUTH2. Maximum 255 characters. Payload Conditional Not specified
password For BASIC, provide exactly one of password or encryptedPassword. Optional for OTHER. Maximum 128 characters when supplied. Payload Conditional Not specified
encryptedPassword EPM Automate encrypted password, as an alternative to password. Cannot be combined with password. Forbidden for OAUTH2. Payload Conditional Not specified
domain Basic-only domain. Must not be supplied for OAUTH2 or OTHER. Payload No Derived from URL for BASIC when omitted
epmOAuth2 OAuth2 configuration for EPM or NSEPM. Payload Required for EPM/NSEPM OAUTH2 None
erpOAuth2 OAuth2 configuration for ERP. Payload Required for ERP OAUTH2 None
headers External/OTHER header collection. Not supported for other provider/authentication pairs. Payload No Omit when not required
queryParameters External/OTHER query-parameter collection. Not supported for other provider/authentication pairs. Payload No Omit when not required

Table 7-18 Parameters

OAuth2 Field Rule
accessTokenUrl Required for ERP. Secure token endpoint URL; insecure URLs are rejected. Maximum 512 characters.
clientId Required for ERP. OAuth2 client identifier. Maximum 512 characters.
scope Required for ERP. OAuth2 scope. Maximum 512 characters.
certificate Required for ERP. Certificate content, maximum 10 MiB. Encrypted before persistence and never returned.
certificateFileName Certificate file name, maximum 512 characters. Requiredness is not specified.
privateKey Required for ERP. Private-key content, maximum 10 MiB. Encrypted before persistence and never returned.
privateKeyFileName Private-key file name, maximum 512 characters. Requiredness is not specified.

Table 7-19 Parameters

Parameter Field Rule
name Required and non-blank; unique within its collection. Maximum 255 characters.
value Required on create. Maximum 255 characters.
isSecured Required. true encrypts the value before persistence and suppresses it from responses.
Collection Omit when no values are required, or use [] to create an empty collection. null is invalid.

Example URL

https://<BASE-URL>/HyperionPlanning/rest/epm/v2/applications/Vision/connections

Example Payload: EPM Basic

{
  "name": "Vision Planning Basic",
  "description": "Planning target connection",
  "url": "https://example-epm.oraclecloud.com/HyperionPlanning",
  "providerCategory": "EPM",
  "authType": "BASIC",
  "username": "service.user@example.com",
  "password": "<PASSWORD>"
}

Example Payload: EPM Basic with an Encrypted Password

{
  "name": "Vision Planning Encrypted",
  "url": "https://example-epm.oraclecloud.com/HyperionPlanning",
  "providerCategory": "EPM",
  "authType": "BASIC",
  "username": "service.user@example.com",
  "encryptedPassword": "<EPM-AUTOMATE-ENCRYPTED-PASSWORD>"
}

For a NetSuite EPM Basic connection, use providerCategory NSEPM. Use the same username and one-password-field structure.

Example Payload: ERP OAuth2

{
  "name": "Fusion ERP OAuth",
  "description": "Fusion ERP OAuth2 connection",
  "url": "https://fusion.example.oraclecloud.com",
  "providerCategory": "ERP",
  "authType": "OAUTH2",
  "erpOAuth2": {
    "accessTokenUrl": "https://idcs.example.com/oauth2/v1/token",
    "clientId": "<CLIENT-ID>",
    "scope": "urn:opc:resource:consumer::all",
    "certificateFileName": "client-cert.pem",
    "certificate": "<CERTIFICATE-CONTENT>",
    "privateKeyFileName": "client-key.pem",
    "privateKey": "<PRIVATE-KEY-CONTENT>"
  }
}

Example Payload: EPM OAuth2

{
  "name": "EPM OAuth",
  "description": "EPM OAuth2 connection",
  "url": "https://example-epm.oraclecloud.com/HyperionPlanning",
  "providerCategory": "EPM",
  "authType": "OAUTH2",
  "epmOAuth2": {
    "accessTokenUrl": "https://idcs.example.com/oauth2/v1/token",
    "clientId": "<CLIENT-ID>",
    "scope": "urn:opc:resource:consumer::all",
    "certificateFileName": "client-cert.pem",
    "certificate": "<CERTIFICATE-CONTENT>",
    "privateKeyFileName": "client-key.pem",
    "privateKey": "<PRIVATE-KEY-CONTENT>"
  }
}

For a NetSuite EPM OAuth2 connection, use providerCategory NSEPM and epmOAuth2.

Example Payload: External OTHER

{
  "name": "External Orders API",
  "description": "External web-service connection",
  "url": "https://api.example.com/v1/orders",
  "providerCategory": "EXTERNAL",
  "authType": "OTHER",
  "username": "optional-user",
  "password": "<OPTIONAL-PASSWORD>",
  "headers": [
    {
      "name": "Accept",
      "value": "application/json",
      "isSecured": false
    },
    {
      "name": "Authorization",
      "value": "Bearer <TOKEN>",
      "isSecured": true
    }
  ],
  "queryParameters": [
    {
      "name": "api-version",
      "value": "v1",
      "isSecured": false
    }
  ]
}

Response

A successful create returns 200 OK with the created connection, its generated id, and a self link.

Payload Parameters:

Table 7-20 Parameters

Name Description
id Generated connection UUID.
name Connection name.
description Connection description.
url Connection URL.
providerCategory Connection category, such as EPM.
authType Canonical authentication value, such as BASIC.
businessProcess Read-only server-derived metadata returned only for Basic EPM/NSEPM connections when available.
applicationType Read-only server-derived metadata returned only for Basic EPM/NSEPM connections when available.
modified Last modification timestamp.
modifiedBy User who last modified the connection.
links Resource links; the self link uses action GET.
headers External response header entries include name and isSecured; non-secured entries also include value.
queryParameters External response query entries include name and isSecured; non-secured entries also include value.

Secured header/query values, Basic passwords, OAuth certificate/private-key contents, and encrypted values are never returned.

Example Response

{
  "id": "generated-connection-uuid",
  "name": "Vision Planning Basic",
  "description": "Planning target connection",
  "url": "https://example-epm.oraclecloud.com/HyperionPlanning",
  "providerCategory": "EPM",
  "authType": "BASIC",
  "businessProcess": "<server-derived value>",
  "applicationType": "<server-derived value>",
  "modified": "2026-08-13 12:00:00.0",
  "modifiedBy": "admin",
  "links": [
    {
      "href": "https://host/HyperionPlanning/rest/epm/v2/applications/Vision/connections/generated-connection-uuid",
      "action": "GET",
      "rel": "self"
    }
  ]
}

Error Scenarios

Validation failures use the standard localized REST error format. Validation failures normally return 400; authorization failures return 403.

Table 7-21 Parameters

Scenario Expected Result
Missing request body, name, url, providerCategory, or authType 400 required-field validation.
Duplicate connection name 400 duplicate-name validation.
providerType supplied, unknown category, or unsupported category/authentication pair 400 invalid provider/authentication field.
ERP with BASIC or OTHER 400; ERP supports OAUTH2 only.
External with BASIC or OAUTH2 400; External supports OTHER only.
BASIC without username or with neither/both password fields 400 Basic credential validation.
BASIC containing an OAuth block 400 invalid OAuth field.
OAUTH2 containing Basic-only credentials or domain 400 invalid authentication field.
epmOAuth2 for ERP or erpOAuth2 elsewhere 400 invalid OAuth field.
Missing OAuth required field, insecure token URL, 512-character field overflow, or certificate/private-key content exceeding 10 MiB 400 OAuth validation.
Headers/query parameters outside External/Other, null collection, blank/duplicate parameter name, or 255-character parameter overflow 400 parameter validation.
Caller is not a Service Administrator 403.
Basic EPM/NSEPM target validation or metadata discovery fails 400; nothing is persisted.