Adds the operators to the phone number with the ID specified in the request.
Name | Description | Type | Example |
numberId
sent in body
|
Phone number ID | string | some text |
operators
sent in body
|
Phone number operators |
Collection of guids
collection
|
9924256A-739C-462b-AF15-E652A3B1B6EB |
PUT api/2.0/crm/voip/numbers/{numberid}/oper Host: yourportal.onlyoffice.com Content-Type: application/json Accept: application/json { "numberId": "some text", "operators": [ "9924256A-739C-462b-AF15-E652A3B1B6EB" ] }
Added phone number operators
application/json
{ "status": 0, "response": [ { "Id": "92eb52c8-bb93-4caf-87fb-46ea11530899", "Answer": 1, "ClientID": "ClientID", "Record": true, "TimeOut": 1, "Status": 1, "AllowOutgoingCalls": true, "PostFix": "PostFix", "PhoneNumber": "PhoneNumber", "RedirectToNumber": "RedirectToNumber" } ] }
text/xml
<result> <status>0</status> <response> <Id>92eb52c8-bb93-4caf-87fb-46ea11530899</Id> <Answer>1</Answer> <ClientID>ClientID</ClientID> <Record>True</Record> <TimeOut>1</TimeOut> <Status>1</Status> <AllowOutgoingCalls>True</AllowOutgoingCalls> <PostFix>PostFix</PostFix> <PhoneNumber>PhoneNumber</PhoneNumber> <RedirectToNumber>RedirectToNumber</RedirectToNumber> </response> </result>