replaceSecondaryOrganizations

post

/ccapp/v1/profiles/{id}/replaceSecondaryOrganizations

Replace Secondary Organizations. This operation is used to replace the secondary organizations for the profile. Optionally takes the x-ccasset-language header to get translated content in another language.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
Root Schema : replaceSecondaryOrganizations_request
Type: object
Show Source
Example:
{
    "secondaryOrganizations":[
        {
            "id":"200001"
        }
    ]
}
Nested Schema : secondaryOrganizations
Type: array
List of secondary organizations that need to be replaced with the given for the profile.
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : replaceSecondaryOrganizations_response
Type: object
Show Source
Nested Schema : secondaryOrganizations
Type: array
List of secondary organizations replaced as part of the request from the profile.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/profiles/120175/replaceSecondaryOrganizations"
        }
    ],
    "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| |------------------|------------------| |22015|If some internal error occurs while replacing secondary organizations to the profile.| |22018|If the user input is null or empty.|
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