doPromoteSSEFiles

post

/ccadmin/v1/serverExtensions/promoteFiles

Initiate promote operation for specified SSE files from preview to live environment. The promote status can be fetched using promoteStatus endpoint

Request

Supported Media Types
Body ()
Root Schema : doPromoteSSEFiles_request
Type: object
Show Source
  • paths
    An array of SSE files name which is to be promoted from preview to live environment. It should contain non-empty and valid files name which are present on preview environment.
Example:
{
    "paths":[
        "helloapp.zip",
        "itunes.zip"
    ]
}
Nested Schema : paths
Type: array
An array of SSE files name which is to be promoted from preview to live environment. It should contain non-empty and valid files name which are present on preview environment.
Show Source
Back to Top

Response

Supported Media Types

202 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : doPromoteSSEFiles_response
Type: object
Show Source
  • links
  • Whether promote operation is initiated successfully or not. If promote config & promote request are valid and no conflicting operation is running then only initiation is set to true.
Example:
{
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/serverExtensions/promoteFiles"
        }
    ],
    "promoteInitiated":true
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |100323|Promote action can not be triggered as preview environment is disabled| |160004|Invalid shared directory path. Please set a valid shared directory path.| |100327|The server extensions path array cannot be null| |100328|The server extensions path array cannot be empty.| |100329|Promote action can not be triggered as SSE isolation lock is not acquired. Please try after sometime.| |14000|The request cannot be accepted right now, as the extension server restart is in progress. Please retry after some time.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top