updateParentOrganization
post
/ccapp/v1/profiles/{id}/updateParentOrganization
Updating a profile's parent organization and retaining the old parent in the profile's secondary organizations list with the existing roles.If the new parent is already part of the secondary organizations list,it is removed from that list and added as the parent with same roles.
Request
Supported Media Types
- application/json
Path Parameters
Header Parameters
-
X-CCAsset-Language(optional): string
The asset language of the request
Root Schema : updateParentOrganization_request
Type:
Show Source
object
-
parentOrganization:
object parentOrganization
List of secondary organizations that need to be replaced with the given for the profile.
Example:
{
"parentOrganization":{
"id":"200001"
}
}
Nested Schema : parentOrganization
Type:
object
List of secondary organizations that need to be replaced with the given for the profile.
Show Source
-
id(optional):
string
ID of the organization to be replaced.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : updateParentOrganization_response
Type:
Show Source
object
-
parentOrganization(optional):
object parentOrganization
parent organization id replaced as part of the request from the profile.
Nested Schema : parentOrganization
Type:
object
parent organization id replaced as part of the request from the profile.
Show Source
-
id(optional):
string
ID of the organization replaced.
Example Response (application/json)
{
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/profiles/120175/updateParentOrganization"
}
],
"parentOrganization":[
{
"id":"200001"
}
]
}
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|
|------------------|------------------|
|22001|If there is any internal error while fetching the profile.|
|22046|If the user input is null or empty.|
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