;

Update User

This API updates the business unit id for user, checking whether the BusinessUnitId is valid and associated with the customer account.
POST https://apiv3.imocha.io/v3/accounts/user/update
  • Docs
  • Try it
Request Body Parameters
Field Type Required Default Description
Email String Yes - Unique email ID for the user
BusinessunitId Integer64 Yes - ID of the business unit the user belongs to
Sample Request Body
Request Body
{ "Email": "[email protected]", "BusinessunitId": 170867 }
Successful response

Status 200 OK

                                
Response
{ "email": "[email protected]", "businessunitId": 170867 }
Failed response

Status 400 Bad request

Response
{ "errors": [ "A Valid Email address is required" ] }
Failed response

Status 400 Bad request

Response
{ "errors": [ "The provided BusinessUnitId is invalid or not associated with your account." ] }
Parameter Value Description Parameter Type Data Type
Email Unique email ID for the user Body String
BusinessunitId ID of the business unit the user belongs to Body Integer64
  • Response Body