Partner kích hoạt tổng đài

Để gắn hotline hoặc thêm mới máy nhánh thì tổng đài cần phải được kích hoạt. API này cho phép Partner kích hoạt tổng đài.

Lưu ý:

  • Vui lòng sử dụng <api_key>mà eTelecom đã cung cấp trước đó. Thông tin base_url của Partner

PartnerActivateTenant

post
Body
connection_idstring · int64Optional

Portsip direct connection (defautl value)

hotline_idstring · int64Required
owner_idstring · int64Optional
tenant_idstring · int64Optional
Responses
200
A successful response
application/json
post
POST /PartnerActivateTenant HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 81

{
  "connection_id": "text",
  "hotline_id": "text",
  "owner_id": "text",
  "tenant_id": "text"
}
200

A successful response

{
  "updated": 1
}

Request:

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

Response:

{
  "updated": 0
}

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

Tham số
Kiểu dữ liệu
Mô tả

connection_id require

string

ID phiên kết nối (thông tin này có được ở bước tạo tổng đài hoặc API lấy danh sách tổng đài)

hotline_id

string

ID hotline

owner_id require

string

ID người quản lý (thông tin này có được ở bước tạo tổng đài hoặc API lấy danh sách tổng đài)

tenant_id require

string

ID của tổng đài (thông tin này có được ở bước tạo tổng đài hoặc API lấy danh sách tổng đài)

Last updated