This endpoint allows you to create users of role type: Customer Care and assign roles to the user within each .

Request Body Params:

Param NameData TypeDescription
first_namestringFirst name of the user
last_namestringLast name of the user
login_idstringLogin ID of the user
email_idstringEmail ID of the user
passwordstringSet the password of the user
job_descriptionstringJob description of the user
login_using_emailbooleanStates whether the user is allowed to login using email address
privilegesARRAY - Privilege OBJECTARRAY of the privilege object containing a map of the teamid and role assigned in each of the team to the user
skill_attributesOBJECTA JSON object containing skill attributes of the user.
active_chatsintegerNo. of chats being handled by the user in his/her My Chats currently

Response Body Params:

Param NameData TypeDescription
teamidintegerUnique identifier of the team
roleenumRole to be assigned to the user:

- Team Manager

- Team Agent

- Team Analyst

📘

Note

This API endpoint only allows creating users of role type: Customer Care - in other words, team level users alone. Creating Administrative Users is not supported currently

Response Body Params:

Param NameDescription
status_codeDenotes the status of the response. Detailed guide can be found here
descriptionStates the description of the status_code. Gives you information about the success/error
responseContains details of the current resource fetched/updated/created

User OBJECT:

Param NameData TypeDescription
idintegerUnique identifier of a user
created_atdatetime - UTC formatDatetime when the user was created on the application
created_atdatetime - UTC formatDatetime when the user was last updated on the application
first_namestringFirst name of the user
last_namestringLast name of the user
login_idstringLogin ID of the user
email_idstringEmail ID of the user
statusenumCurrent status of the user:

- active

- inactive
logged_inbooleanStates whether the user is currently logged into the application
job_descriptionstringJob description of the user
login_using_emailbooleanStates whether the user is allowed to login using email address
role_typeenumRole Type of the user:

- Customer Care

- Administrative
accepting_chatsbooleanStates whether the user is ready to accept chats currently
skill_attributesOBJECTA JSON object containing skill attributes of the user.
active_chatsintegerNo. of chats being handled by the user in his/her My Chats currently

Response Codes

status_codeHTTP StatusDescription
4308200User created successfully
2002400Invalid header param - could not find mandatory header parameters
2003400Invalid Access Token
2004401Access Token expired
2007500Internal Server Error
2010404Could not find details of team based on the teamid passed in the header
2099405Method not allowed
3102409The requested user already exists
3107400The value provided for the custom attribute 'business' is not valid
3110400The value provided for the custom attribute 'location' is not valid
3111400The email id already exists in the system
3114400Request body not provided
3115400Request is invalid
Language