Tạo tổng đài
API này dùng để tạo tổng đài
Body
objectOptional
Responses
200
A successful response
application/json
post
POST /CreateTenant HTTP/1.1
Host: $BASE_URL.Etelecom
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
200
A successful response
{
"connection_id": "text",
"connection_method": "unknown",
"created_at": "2025-08-02T04:35:17.598Z",
"domain": "text",
"id": "text",
"name": "text",
"owner_id": "text",
"status": "Z",
"updated_at": "2025-08-02T04:35:17.598Z"
}
Request:
curl --location '$BASE_URL.Etelecom/CreateTenant' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{}'
Response:
{
"connection_id": "string",
"connection_method": "unknown",
"created_at": "2019-08-24T14:15:22Z",
"domain": "string",
"id": "string",
"name": "string",
"owner_id": "string",
"status": "Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Cấu trúc thuộc tính dữ liệu trả về:
Tham số
Kiểu dữ liệu
Mô tả
connection_id
string<int64>
ID phiên kết nối
connection_method
string
Phương thức kết nối
created_at
string<date-time>
Thời gian khởi tạo
domain
string
Domain của tổng đài
id
string<int64>
ID của tổng đài
name
string
Tên của tổng đài
owner_id
string<int64>
ID người quản lý
status
string
Trạng thái
Z
: Mới tạo
P
: Enable
N
: Disable
updated_at
string<date-time>
Ngày cập nhật
Last updated