updateProfileRequest
put
                    /ccagent/v1/profileRequests/{id}
Update Profile request. This operation is used to update an Profile request in Oracle Commerce Cloud for a customer.
                Request
Supported Media Types
                - application/json
Path Parameters
                - 
                    id: string
                    
                    The ID of the Profile request to be updated.
Query Parameters
                - 
                        expand(optional): string
                        
                        Expand query param : currently used to expand profile and request Info.(Allowed Values: profile - profile static data, profileAll - profile static & dynamic data, requestAll - profileRequest static & dynamic data).
Header Parameters
                - 
                        X-CCAgentContext: string
                        
                        The Agent Context is a JSON object with shopperProfileId as a property.
- 
                        X-CCOrganization: string
                        
                        The organization Id associated with the shopper profile
Root Schema : updateProfileRequest_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            profile(optional): 
            object  profile
            
            Profile
- 
            requestedOrganizationID(optional): 
            string
            Requested Organization ID given by the requester.
- 
            requestedOrganizationName(optional): 
            string
            Requested Organization name given by the requester.
- 
            requesterComments(optional): 
            string
            Requester comments given at time of creating request
- 
            status(optional): 
            string
            status of the profile request (review, moreInfoNeeded) are values.
Example:
    
    
{
    "requestedOrganizationName":"Sample org",
    "profile":{
        "firstName":"First name",
        "lastName":"last name",
        "customerContactId":"CRMID_1",
        "email":"user@temp.com"
    },
    "requestedOrganizationID":null,
    "requesterComments":"Some comments",
    "status":"review"
}Nested Schema : profile
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectProfile
    
    
    
    
        Show Source
        - 
            customerContactId(optional): 
            string
            The external customer contact id.
- 
            email: 
            string
            email id of profile
- 
            firstName(optional): 
            string
            First name of the profile
- 
            id(optional): 
            string
            Repository Id of the profile
- 
            lastName(optional): 
            string
            Last name of the profile
Response
Supported Media Types
                - application/json
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : updateProfileRequest_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            approverComments(optional): 
            string
            Profile request approver comments
- 
            id(optional): 
            string
            Id of Profile Request
- 
            profile(optional): 
            object  profile
            
            Profile
- 
            requestedOrganizationID(optional): 
            string
            Requested Organization ID given by the requester.
- 
            requestedOrganizationName(optional): 
            string
            Requested Organization name given by the requester.
- 
            requesterComments(optional): 
            string
            Requester comments given at time of creating request
- 
            siteId(optional): 
            string
            Site captured during request creation
- 
            status(optional): 
            string
            Status of Profile Request
Nested Schema : profile
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectProfile
    
    
    
    
        Show Source
        - 
            customerContactId(optional): 
            string
            The external customer contact id.
- 
            email(optional): 
            string
            email id of profile
- 
            firstName(optional): 
            string
            First name of the profile
- 
            id(optional): 
            string
            Repository Id of the profile
- 
            lastName(optional): 
            string
            Last name of the profile
Example Response (application/json)
                    {
    "approverComments":null,
    "requestedOrganizationName":null,
    "profile":{
        "id":"100001"
    },
    "organization":{
        "id":"150002"
    },
    "siteId":"siteUS",
    "requestedOrganizationID":null,
    "id":"100001",
    "requesterComments":"None",
    "status":"review"
}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|
|------------------|------------------|
|102000|Invalid Profile Request ID.|
|10001|Organization ID is required.|
|00004|Data value too long.|
|101008|This operation is not allowed as registration request is already in approved/rejected state.|
|101007|Invalid status for registration request. Allowed status are [review, moreInfoNeeded]|
|100018|If there was any internal error while updating the Organization|
|101014|Cannot update the status of this registration request to any value except "Rejected", because the requester's profile no longer exists|
|101017|This operation is not allowed as requester's profile no longer exists.|
|100091|Agent does not have permission to perform this action.|
|89101|If the shopperProfile passed in the AgentContext header is not an administrator for the account
                
                
                    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: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn 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