Merge End Users

PUT {{baseUrl}}/api/v2/users/:user_id/merge

Merges the end user specified in the path parameter into the existing end user specified in the request body.

Any two end users can be merged with the exception of end users created by sharing agreements.

Agents and admins cannot be merged.

Allowed For

  • Admins or agents with permission to edit end users

Request Body

{"user"=>{"name"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "email"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "custom_role_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "external_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "identities"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "organization"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "organization_id"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "role"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;user&quot;:{&quot;id&quot;:35436,&quot;name&quot;:&quot;Johnny Agent&quot;}}