Change hotline for extension
This API is used to change the hotline for the extension.
Body
hotline_idstring · int64Optional
user_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: 38
{
"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 '{
"hotline_id": "string",
"user_id": "string"
}'
Response:
{
"updated": 0
}
Request body structure:
School name
Data type
Describe
hotline_id required
string
ID hotline
user_id
required
string
Employee ID
Return data attribute structure:
School name
Data type
Describe
updated
int
Status
0
: Failed
1
: Successful
Last updated