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
extension_idstring · int64Optional
hotline_idstring · int64Optional
user_idstring · int64Optional
Responses
200

A successful response

application/json
post
POST /v1/partner.Etelecom/UpdateHotlineForExtension HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "extension_id": "text",
  "hotline_id": "text",
  "user_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 '{
    "extension_id": "string",
    "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ả

extension_id

string

ID của máy nhánh

hotline_id required

string

ID hotline

user_id

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