publish
post
/ccadmin/v1/publish
Publish. Start or schedule a publish operation. Deprecated.
Request
Supported Media Types
- application/json
Root Schema : publish_request
Type:
Show Source
object
-
dateTime(optional):
string
Timestamp to schedule the publish operation. Not valid when operationType is selective_publish
-
maxWaitMinutes(optional):
integer
Number of minutes to wait for the publishing lock that may be held by another long-running operation, such as an import.
-
operationType(optional):
string
Type of publish operation to perform. one of publish, full_publish or selective_publish
-
tokenID(optional):
string
TokenID to represent the list of change item IDs to use for selective publishing
Example:
POST /ccadmin/v1/publish
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : publish_response
Type:
Show Source
object
-
publishRunning(optional):
boolean
Tells wheather publish is running.
-
statusMessage(optional):
string
Status Message of publish.
Example Response (application/json)
{
"publishRunning":true,
"statusMessage":"A publish has been successfully initiated."
}
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|
|------------------|------------------|
|31021|A scheduled publish already exists with the specified date and time: {0}|
|31020|The scheduled publish date and time: {0} is invalid.|
|31022|An internal error occurred while scheduling a publishing operation.|
|31033|Invalid input error.|
|31030|Could not start publish operation. Another publish operation is currently in progress.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code