/
How To: Post an API to Reassign a User

How To: Post an API to Reassign a User

Request URL

https://app.insellerate.com/api/v2/pub/application/reassign?orgId={{Insellerate Org ID}}

 

Request Body

{

  "ApplicationId": {{Insellerate Application ID}},

  "Assignments": [

    {

      "UserId": "{{Insellerate User 1 ID}}"

    },

    {

      "UserId": "{{Insellerate User 2 ID}}"

    }

  ],

  "PrimaryAgent":

  {

    "UserId": "{{Insellerate User ID}}"

  },

  "UnassignAllOtherUsers": {{true or false}}

}

If the Insellerate user ID is unknown to the requestor, the Insellerate user's email can be used in lieu. Just replace "UserId":, with the "Email" parameter.

 

Request Body

{

  "ApplicationId": {{Insellerate Application ID}},

  "Assignments": [

    {

      "Email": "{{Insellerate User Email}}"

    },

    {

      "Email": "{{Insellerate User Email}}"

    }

  ],

  "PrimaryAgent":

  {

    "Email": "{{Insellerate User Email}}"

  },

  "UnassignAllOtherUsers": {{true or false}}

}

"UnassignAllOtherUsers": If true, will unassign all other users if their role matches that of the PrimaryAgent specified in the post. If false, will keep all other users of the same role of the PrimaryAgent as secondary agents to the application.

Requestors can also make a GET request to https://app.insellerate.com/api/integration/GetUsers?orgId={{Insellerate Org ID}} to view the list of available users and their current agent roles in the org prior to making the post request.

Senders should receive a 200 OK response code, notifying them that the request was received and was either successful/unsuccessful.

 

Related Articles

Filter by label

There are no items with the selected labels at this time.

 

 

Related content