Update an Member

This endpoint allows you to update an operator using ID.

put
Update an member

https://api.imber.live/member/:ID
Update an member
Request
Response
Request
Path Parameters
id
optional
string
ID of the opeator
Headers
Authentication
required
string
Authentication token
Body Parameters
type
optional
number
Type of operator (Types described below)
workSpaceIds
optional
string
Workspace IDs that this operator assigned to
person
optional
object
Personal information (fields of this object described in table below)
Response
200: OK
Operator successfully retrieved.
{
"success": true,
"data": {
"person": {
"name": "حامد قلیزاده",
"phone": "09354140661",
"avatar": "https://upload.imber.live/preview/5fc60396967be139cea6b9d9/5f00bca8f25cee0466768fa0",
"nickName": "Hamed",
"title": "کارشناس پشتیبانی"
},
"workSpaceIds": [
"5fbb7399d0222a70a8fece80",
"5f00a44d8e844b5a746f90b3"
],
"status": false,
"_id": "5f00bca8f25cee0466768fa0",
"isJoined": true,
"email": "[email protected]",
"organization": "5f00a44d8e844b5a746f90b1",
"type": 2,
"createdAt": "2020-07-14T07:24:20.931Z",
"updatedAt": "2020-07-14T07:24:20.931Z",
"__v": 1
}
}

Person Object

Field

Type

Description

name

String

Real name of operator

phone

String

Phone number of operator

avatar

String

URL of operator avatar image

nickName

String

Operator nick name (Shown to users)

title

String

The title or position of operator in company (Shown to users)

Types

Type

Description

1

Operator (Access to Inbox, Contacts, Live and Knowledge Base)

2

Admin (Full access)

3

Creator of account (Full access)

4

Deleted

5

Operator (Access only to inbox)

6

Bot