Edit Linkus Server Settings

Edit the Linkus server settings.

Request URL

POST {base_url}/{api_path}/extension_linkusserver/update?access_token={access_token}

Request parameters

Parameter Required Type Description
config_type No Integer Specify how to apply the configuration.

Valid value:

  • 1: Update the default configuration only.
  • 2: Update the default configuration and apply the codec settings to all extensions.
enable_extension_login No Integer Whether to allow users to log in to Linkus using their extension numbers.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Note: At least one of enable_extension_login and enable_email_login must be set to 1.
enable_email_login No Integer Whether to allow users to log in to Linkus using their email addresses.

Valid value:

  • 0: Disabled.
  • 1: Enabled.
Note: At least one of enable_extension_login and enable_email_login must be set to 1.
linkus_mobile_codec No String Specify the codecs supported by Linkus Mobile Clients.
Note: Use a comma to separate multiple codecs.

Valid value:

  • ulaw
  • alaw
  • ilbc
  • g722
  • g729
  • opus

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.

Example

Request example

POST /openapi/v1.0/extension_linkusserver/update?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com
Content-Type: application/json
{
    "config_type": 1
}

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS"
}