modifyService
post
/ccstore/v1/services/{id}/modify
Modify a service associated with a user.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueID of an asset.
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Body Parameter
Root Schema : action_request
- transactionDate
-
Type:
stringThe date and time on which the service request was made.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : modifyService_response
- bomKey
-
Type:
stringThe instance id used by the configurator. - configContextKey
-
Type:
stringContext key passed to configurator session to retrieve bom instance being calculated by ABO process. - configuratorUrl
-
Type:
stringURL to launch configurator with. - model
-
Type:
stringModel variable name for the model to launch configurator ui. - productLine
-
Type:
stringProduct line variable name for the model to launch configurator ui. - segment
-
Type:
stringSegment variable name for the model to launch configurator ui.
Example application/json
{
"productLine":"laptop",
"configContextKey":"string",
"configuratorUrl":"www.example.com",
"bomKey":"string",
"segment":"computer",
"model":"laptopModel"
}
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|
|------------------|------------------|
|551000|Could not get customers profile.|
|551001|Customer has no service account.|
|551002|Error retrieving customers service account.|
|551003|Error retrieving account assets.|
|551004|Error validating contact account ids in Order.
|551005|Invalid account asset id.
|551006|Account asset authorization error.
|551007|Owner of the account asset could not be determined.
|551008|Error submitting action request.
|551009|Invalid transactionDate.
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Response Payload returned by endpoint:
{
"productLine": "laptop",
"configContextKey": "string",
"configuratorUrl": "www.example.com",
"bomKey": "string",
"segment": "computer",
"model": "laptopModel"
}