Toggle User Line Outgoing


This request toggles the outgoing value of the connected user line.
This is used in a user based lines environment sets the outgoing value of the current user.
If true the outgoing calls are done with the selected line.
The user can only select 1 line for outgoing calls, if a line is set to true all other connected user lines are set false.
If no lines are selected as outgoing line it defaults to the users personal line.

Resource

PUT /me/user_lines/<OID>/toggle_outgoing

Where 'OID' is the object ID of the connected user line.
The connected user lines can be fetched by Get User Lines

Parameters

None

Payload

The new outgoing state of the connected user line (true/false).

Response

None

Context

Authorization

User

Errors

HTTP code Xelion code Description

400

10071

User cannot change outgoing line.

404

10068

User is not part of line.

Example

Request
PUT https://xelion.nl/api/v1/master/me/user_lines/1234345/toggle_outgoing
Payload
true