POST api/usr/CallForwarding?serviceNumber={serviceNumber}&pbxUserId={pbxUserId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| serviceNumber | string |
None. |
|
| pbxUserId | string |
None. |
Body Parameters
CallForwardingDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CallForwardingAlways | CallForwardingEntryDTO |
None. |
|
| CallForwardingNoAnswer | CallForwardingNoAnswerDTO |
None. |
|
| CallForwardingBusy | CallForwardingEntryDTO |
None. |
|
| CallForwardingNotReachable | CallForwardingEntryDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"CallForwardingAlways": {
"IsActive": true,
"ForwardToPhoneNumber": "sample string 2"
},
"CallForwardingNoAnswer": {
"NumberOfRings": 1,
"IsActive": true,
"ForwardToPhoneNumber": "sample string 3"
},
"CallForwardingBusy": {
"IsActive": true,
"ForwardToPhoneNumber": "sample string 2"
},
"CallForwardingNotReachable": {
"IsActive": true,
"ForwardToPhoneNumber": "sample string 2"
}
}
application/xml, text/xml
Sample:
<CallForwardingDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MSPApi.DTO.User">
<CallForwardingAlways>
<ForwardToPhoneNumber>sample string 2</ForwardToPhoneNumber>
<IsActive>true</IsActive>
</CallForwardingAlways>
<CallForwardingBusy>
<ForwardToPhoneNumber>sample string 2</ForwardToPhoneNumber>
<IsActive>true</IsActive>
</CallForwardingBusy>
<CallForwardingNoAnswer>
<ForwardToPhoneNumber>sample string 3</ForwardToPhoneNumber>
<IsActive>true</IsActive>
<NumberOfRings>1</NumberOfRings>
</CallForwardingNoAnswer>
<CallForwardingNotReachable>
<ForwardToPhoneNumber>sample string 2</ForwardToPhoneNumber>
<IsActive>true</IsActive>
</CallForwardingNotReachable>
</CallForwardingDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |