Thay đổi hotline cho máy nhánh

API này dùng để thay đổi hotline cho máy nhánh.

Lưu ý:

  • API sử dụng cho trường hợp tích hợp dưới dạng Partner.

  • API_KEY: <shop_key>

  • Thông tin base_url của Partner

UpdateHotlineForExtension

post
Body
hotline_idstring · int64Optional
Responses
200
A successful response
application/json
post
POST /UpdateHotlineForExtension HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 21

{
  "hotline_id": "text"
}
200

A successful response

{
  "updated": 1
}

Request:

curl --location '$BASE_URL.Etelecom/UpdateHotlineForExtension' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
  "hotline_id": "string",
  "user_id": "string"
}'

Response:

{
  "updated": 0
}

Cấu trúc body của request:

Tên trường
Kiểu dữ liệu
Mô tả

hotline_id required

string

ID hotline

user_id required

string

ID nhân viên

Cấu trúc thuộc tính dữ liệu trả về:

Tên trường
Kiểu dữ liệu
Mô tả

updated

int

Trạng thái 0: Thất bại 1: Thành công

Last updated