change Profile Owners
PUT {{HostName}}/crm/v1/profiles/{{ProfileId}}/owners
Use this API to update a profile owner code to an existing profile in OPERA Cloud. You need to know the owner code for the body of the request, as well as the profile ID. Profile owners can be assigned to Company, Agent, Source profiles. To find the owner code, you can use the operation - GET '/crm/config/v1/accountOwners?findExactOwnerCodeMatch=false&ownerCode=XXX&chainCode=CHA&maxFetchRecords=0&hotelId={{HotelId}}
Request Body
{"criteria"=>{"profileIdList"=>[{"type"=>"Profile", "id"=>"{{CompanyId}}"}], "owners"=>[{"hotel"=>{"code"=>"{{HotelId}}"}, "ownerCode"=>"KMD", "name"=>{"givenName"=>"Sam", "surname"=>"Brown"}, "email"=>{"email"=>{"emailAddress"=>"example@email.com"}}, "primary"=>true}]}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
x-app-key | string | ||
x-hotelid | string |