appendSecondaryOrganizations
post
/ccadmin/v1/profiles/{id}/appendSecondaryOrganizations
Append Secondary Organizations. This operation is used to append the secondary organizations for the profile. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Path Parameters
Header Parameters
-
X-CCAsset-Language: string
The asset language of the request
Root Schema : appendSecondaryOrganizations_request
Type:
Show Source
object
-
secondaryOrganizations(required):
array secondaryOrganizations
List of secondary organizations that need to associate with the profile.
Example:
{
"secondaryOrganizations":[
{
"id":"200001"
}
]
}
Nested Schema : secondaryOrganizations
Type:
array
List of secondary organizations that need to associate with the profile.
Show Source
Nested Schema : items
Type:
Show Source
object
-
id(required):
string
ID of the organization to be assigned.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : appendSecondaryOrganizations_response
Type:
Show Source
object
-
secondaryOrganizations:
array secondaryOrganizations
List of secondary organizations appended to the profile.
Nested Schema : secondaryOrganizations
Type:
array
List of secondary organizations appended to the profile.
Show Source
Example Response (application/json)
{
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/profiles/120175/appendSecondaryOrganizations"
}
],
"secondaryOrganizations":[
{
"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|
|------------------|------------------|
|22016|If some internal error occurs while assigning secondary organizations to the profile.|
|22018|If the user input is null or empty.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
errors:
array errors
An optional list of errors if multiple errors were encountered
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code
-
type:
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:
string
An optional non-localized message containing technical information for developers
-
errorCode:
string
The numerical code identifying the error
-
message:
string
The localized message describing the error
-
moreInfo:
string
An optional non-localized message with more information
-
o:errorPath:
string
An optional machine readable description of where the error occurred
-
status:
string
The HTTP status code