Update a Connection (v2)

Use this REST API to update an existing service connection. Only supplied writable fields are changed; omitted fields retain their stored values.

Required Roles

Service Administrator

REST Resource

PUT /HyperionPlanning/rest/epm/{api_version}/applications/{application}/connections/{connectionRef}

Request

Supported Media Types: application/json

Required Header: Content-Type: application/json

Parameters:

The following table summarizes the client request.

Table 7-31 Parameters

Name Description Type Required Default
api_version Version of the API. Use v2. Path Yes None
application The name of the application containing the connection. Path Yes None
connectionRef The connection UUID returned by Create a Connection. Path Yes None

Update Behavior

This PUT operation performs a partial update. Omitted writable fields, OAuth values, and secrets remain unchanged.

Table 7-32 Parameters

Area Behavior
name, description Writable. Field validation applies. A changed name must remain unique. Name- or description-only changes do not invoke remote connection validation.
Provider identity Immutable. Omit providerCategory; if supplied, it must match the stored category. providerType is unsupported and is rejected.
Authentication type ERP remains OAUTH2 and External remains OTHER. EPM/NSEPM Basic-to-OAuth2 switching is described as allowed, but the error table contradicts this; see Design Clarifications.
Basic configuration A supplied URL, username, password/encryptedPassword, or domain triggers remote connection validation and metadata discovery before persistence. Validation failure prevents the update.
OAuth2 configuration Supplied OAuth values are validated and merged. Omitted values remain stored. Certificate/private-key content is encrypted before persistence and is never returned.
Read-only metadata businessProcess and applicationType are server-derived Basic response metadata. Client-supplied values are not used to update the connection.
External configuration Optional username/password and headers/query parameters are validated and persisted.

Request Payload:

Table 7-33 Parameters

Name Description
name The new connection name; it must remain unique. Omit to retain the existing name.
description The updated connection description. Omit to retain the existing value.
url The connection URL. A Basic configuration change triggers remote validation.
providerCategory Optional matching check only. Must match the stored provider category.
providerType Not supported. Supplying this field returns 400.
authType ERP uses OAUTH2 and External uses OTHER. The EPM/NSEPM switching policy and exact request enum casing require clarification; see Design Clarifications.
username Basic username, or optional External username. OAuth2 updates reject this field.
password Plain text password. Supply exactly one of password or encryptedPassword when changing a Basic credential. Optional for External. OAuth2 updates reject this field.
encryptedPassword Encrypted Basic password. Supply exactly one password field when changing credentials. OAuth2 updates reject this field. [Confirm the V2 encrypted-password encoding.]
domain Basic connection domain. OAuth2 updates reject this field.
erpOAuth2 OAuth2 fields to merge for ERP. The design also references this block for EPM, inconsistently; see Design Clarifications.
epmOAuth2 The design identifies this as invalid for ERP, but its supported EPM/NSEPM contract requires clarification.
headers External/OTHER header collection. Omission preserves it; a supplied array replaces it; [] clears it; null is invalid.
queryParameters External/OTHER query-parameter collection. Omission preserves it; a supplied array replaces it; [] clears it; null is invalid.
businessProcess Read-only response metadata; supplied values are not used to update the connection.
applicationType Read-only response metadata; supplied values are not used to update the connection.

A same-mode Basic update may supply only the fields being changed. Successful remote validation refreshes businessProcess and applicationType when available.

OAuth2 Fields and Validation

Table 7-34 Parameters

Name Description
accessTokenUrl OAuth2 token endpoint. Insecure token URLs are rejected.
clientId OAuth2 client identifier.
scope OAuth2 scope.
certificate Certificate content. Encrypted before persistence and never returned.
certificateFileName Certificate file name.
privateKey Private-key content. Encrypted before persistence and never returned.
privateKeyFileName Private-key file name.

Supplied OAuth values are validated; omitted values retain stored values. The design specifies errors for missing or invalid supplied fields, 512-character field overflow, and certificate/private-key content exceeding 10 MiB. [Confirm the exact fields subject to the 512-character limit.]

OAuth2 updates reject username, password, encryptedPassword, and domain. Basic requests with an OAuth block, ERP requests with epmOAuth2, and Basic/External requests with erpOAuth2 are rejected. See Design Clarifications for switching requests.

Header and Query-Parameter Collections

Table 7-35 Parameters

Request Form Result
Omit headers or queryParameters Preserves that stored collection.
Supply headers Replaces all headers; omitted query parameters remain unchanged.
Supply queryParameters Replaces all query parameters; omitted headers remain unchanged.
Supply [] Clears that collection.
Supply null Invalid.

Table 7-36 Parameters

Parameter Field Description
name Required non-blank name, unique within the collection. Maximum 255 characters.
value Parameter value, maximum 255 characters. Required for a new secured parameter and to replace an existing secured value.
isSecured Required. Secured values are encrypted before persistence and omitted from responses.

To preserve an existing secured value, resend the parameter name and isSecured: true without value. To replace it, supply value. These collections are supported only for EXTERNAL or OTHER.

Example URL

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

Example Body: Description-Only Update

{
  "description": "Updated operational description"
}

Example Body: Rename a Connection

{
  "name": "Vision Planning Basic Updated"
}

Example Body: EPM or NSEPM Basic Configuration Update

{
  "url": "https://example-epm.oraclecloud.com/HyperionPlanning",
  "username": "updated.service.user@example.com",
  "password": "<NEW-PASSWORD>",
  "domain": "example-epm"
}

Example Body: ERP OAuth2 Configuration Update

{
  "erpOAuth2": {
    "clientId": "rotated-erp-client-id",
    "certificateFileName": "rotated-erp-cert.pem",
    "certificate": "<CERTIFICATE-CONTENT>",
    "privateKeyFileName": "rotated-erp-key.pem",
    "privateKey": "<PRIVATE-KEY-CONTENT>"
  }
}

Example Body: Replace External Headers

{
  "headers": [
    {
      "name": "Accept",
      "value": "application/xml",
      "isSecured": false
    },
    {
      "name": "Authorization",
      "value": "Bearer <ROTATED-TOKEN>",
      "isSecured": true
    }
  ]
}

Example Body: Preserve an Existing Secured Header Value

{
  "headers": [
    {
      "name": "Authorization",
      "isSecured": true
    }
  ]
}

The preceding preservation example replaces the header collection with the Authorization entry while retaining its encrypted value. Include every other header that must remain in the replacement collection.

Example Body: Clear Query Parameters

{
  "queryParameters": []
}

Response

A successful update returns 200 OK and the current connection representation.

Table 7-37 Parameters

Name Description
id The connection UUID.
name The connection name.
description The connection description.
url The connection URL.
providerCategory The stored provider category, such as EPM.
authType The authentication type; the design response example uses BASIC.
businessProcess Server-derived metadata, returned only for Basic EPM/NSEPM connections when available.
applicationType Server-derived metadata, returned only for Basic EPM/NSEPM connections when available.
modified The timestamp of the last modification.
modifiedBy The user who last modified the connection.
links Resource links. The self link in the design uses action GET.

Passwords, encrypted passwords, OAuth certificate/private-key content, and secured header/query-parameter values are never returned.

Example Response

{
  "id": "connection-uuid",
  "name": "Vision Planning Basic Updated",
  "description": "Updated operational description",
  "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/connection-uuid",
      "action": "GET",
      "rel": "self"
    }
  ]
}

Error Scenarios

Validation failures use the standard localized REST error response. Validation errors normally return 400; authorization failures return 403; an unknown connection reference returns 404.

Table 7-38 Parameters

Scenario Expected Result
Missing request body 400.
Unknown connection reference 404.
Duplicate renamed connection 400 duplicate-name validation.
providerType supplied or nonmatching providerCategory 400; provider identity is immutable.
Any authType change The design error table specifies 400, contradicting the EPM/NSEPM switching policy. Clarification required.
Basic remote validation or metadata discovery failure 400; the candidate update is not persisted.
Basic request with an OAuth block; ERP OAuth request with Basic-only fields or domain 400 invalid authentication field. Applicability to switching requests needs clarification.
ERP with epmOAuth2; Basic or External with erpOAuth2 400 invalid OAuth field.
Missing or invalid supplied OAuth field, insecure token URL, 512-character field overflow, or certificate or private-key content exceeding 10 MiB 400 OAuth validation.
Header or query parameters outside External or Other; null collection; blank or duplicate name; new secured parameter without value; 255-character parameter overflow 400 parameter validation.
Caller is not a Service Administrator 403.